ReadData reads the embedded data from the current position. Make sure that the type of the data value is an integer, else PlayBASIC will return a runtime error.
Mini Tutorial:
; read the defined data ; read strings data Print ReadData$() Print ReadData$() ; read integers Print ReadData() Print ReadData() ; read floats Print ReadData#() Print ReadData#() ; embedded data Data "Play", "Basic", 3 Data 42, 3.21, 1.1 ; Display the Screen and wait for the user to press a key Sync WaitKey |
This example would output.
|