Anyone know a way to set the pointer size at runtime?
Swap in the commented line to see the output (PTR * 5).
Maybe someone knows how to POKE in the size (similar to poking in the variant size of a Boolean).
Code:
#COMPILER PBWIN #COMPILE EXE #DIM ALL '******************************************************************************** FUNCTION PBMAIN() AS LONG '******************************************************************************** LOCAL lDebug AS LONG: TXT.WINDOW "Debug", 10,10,50,75 TO lDebug 'Thanks Dave! LOCAL X AS LONG X = 5 LOCAL C AS STRING PTR * X '<-------- I want to set this at runtime 'LOCAL C AS STRING PTR * 5 LOCAL D AS STRING D = "....1....2....3....4....5" C = STRPTR(D) TXT.PRINT @C[0] & " " & @C[1] & " " & @C[2] & " " & @C[3] & " " & @C[4] TXT.PRINT "Press any key to exit (just like the old days!)": TXT.WAITKEY$: TXT.END END FUNCTION
Maybe someone knows how to POKE in the size (similar to poking in the variant size of a Boolean).
Comment