ReadData# reads the embedded data at the current position. Make sure that the type of the data value is a float, else PlayBASIC will return a runtime error.
Mini Tutorial:
; read strings from the data stack Print ReadData$() Print ReadData$() ; read integers from the data stack Print ReadData() Print ReadData() ; read floats from the data stack 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 any key Sync WaitKey |
This example would output.
|