I saw some PB code to dim an array using the AT keyword to point it to a string and have access to the data through the array, which I thought was great. is there a way to reverse the process without a loop?
I have the data in a byte array and I want to put it in a string but I would like to just pass a pointer or something.
can you do something like
Dim Strg as String
Strg = VarPtr(MyArray(0))
or something ???????
or maybe:
Dim StrgPtr as string Ptr
StrgPtr = VarPtr(MyArray(0))
then use @StrgPtr ????????? NFI !
or should I use memcopy in a function?
------------------
Paul Dwyer
Network Engineer
Aussie in Tokyo
(Paul282 at VB-World)
I have the data in a byte array and I want to put it in a string but I would like to just pass a pointer or something.
can you do something like
Dim Strg as String
Strg = VarPtr(MyArray(0))
or something ???????
or maybe:
Dim StrgPtr as string Ptr
StrgPtr = VarPtr(MyArray(0))
then use @StrgPtr ????????? NFI !
or should I use memcopy in a function?
------------------
Paul Dwyer
Network Engineer
Aussie in Tokyo
(Paul282 at VB-World)
Comment