Maybe just having case of brain lock this morning, but having trouble
dim'ing a pointer to a fixed length string.
???
TIA,
dim'ing a pointer to a fixed length string.
Code:
#compile exe #dim all function pbmain () as long local TargStr as string * 16 local MyStr as string * 16 'un-comment one of next three lines 'local pMyStr as MyStr pointer '<-- Undefined TYPE at "MyStr" during compile 'local pMyStr as string * 16 pointer '<-- End of statement expected during compile 'local pMyStr as string pointer '<-- GPF during run ... duh MyStr = "1234" pMyStr = varptr(MyStr) msgbox str$(pMyStr) TargStr = @pMyStr msgbox TargStr end function
TIA,
Comment