Hello,
Could someone clear up how string handles work?
I know this much, the string handle is a pointer to another
pointer that points to the real string data.
so what is the handle, I thought that maybe it could be a handle
returned by GlobalAlloc() but that did not seem to be the case as
the following example returns zero.
------------------
Cheers
Could someone clear up how string handles work?
I know this much, the string handle is a pointer to another
pointer that points to the real string data.
Code:
dim handle as long dim pointer as byte ptr handle = varptr(string) pointer = handle @pointer = (first byte in string)
so what is the handle, I thought that maybe it could be a handle
returned by GlobalAlloc() but that did not seem to be the case as
the following example returns zero.
Code:
dim buff as string buff = "This is a test message" msgbox format$( GlobalSize( varptr(buff) ) )
------------------
Cheers
Comment