Pointer to string of string list?

Everything else that doesn't fall into one of the other PB categories.
Lebostein
Addict
Addict
Posts: 807
Joined: Fri Jun 11, 2004 7:07 am

Pointer to string of string list?

Post by Lebostein »

Pointer to a single string or a string in a structured list works. But how I get the pointer to a string of a string list?

Code: Select all

Procedure StringCheck(*string)

  *buffer.character = *string
  Debug *buffer\c

EndProcedure

test$ = "ABC"
StringCheck(@test$)
; = 65 = OK

Structure xxx
  test.s
EndStructure
NewList mylist1.xxx()
AddElement(mylist1())
mylist1()\test = "ABC"
StringCheck(@mylist1()\test)
; = 65 = OK

NewList mylist2.s()
AddElement(mylist2())
mylist2() = "ABC"
StringCheck(@mylist2())
; = 2208 = wrong, pointer to list element?
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Re: Pointer to string of string list?

Post by nco2k »

StringCheck(PeekI(@mylist2()))

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
Post Reply