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 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 423.211.1
  
; Display the Screen and wait for the user to press any 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