I recently needed to access array elements using pointers.
To correctly accomplish this I had to get the pointer to the
first element and use my offsets from there - i.e.
VARPTR(MyArray(0).FirstElement). I first tried VARPTR(MyArray()).
This did not work but if I read the online help correctly, it
should have worked. As a note - MyArray was declared as a
global of a user defined type. Does anyone have any thoughts on
this. Thanks.
------------------
To correctly accomplish this I had to get the pointer to the
first element and use my offsets from there - i.e.
VARPTR(MyArray(0).FirstElement). I first tried VARPTR(MyArray()).
This did not work but if I read the online help correctly, it
should have worked. As a note - MyArray was declared as a
global of a user defined type. Does anyone have any thoughts on
this. Thanks.
------------------
Comment