ReadData$
Result$ = ReadData$()
 
Parameters: NONE
Returns:

    Result$ = the data that was read
 

      ReadData$ reads the embedded data at the current position. Make sure that the type of the data value is a string, 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 423.211.1
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  




This example would output.

  
  Play
  Basic
  3
  42
  3.21
  1.1
  

 
Related Info: Data | FindData | GetDataPointer | GetDataQuantity | GetDataType | ReadData | ReadData# | Restore :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com