Input Commands

The following functions can be used to gather input data:

COMM

Retrieve the value or status of a communications parameter

COMM LINE

Receive a CR/LF terminated "line" of data from a serial port

COMM RECV

Receive binary data from a serial port

COMMAND$

Return the command-line used to start the program

ENVIRON

Modify the current program's environment table.

ENVIRON$

Retrieve strings from the operating system's environment table

EOF

Return end-of-file status of a file, serial or TCP/UDP transmission

FIELD

Bind a field string to a file buffer or dynamic string variable

FILESCAN

Rapidly scan a INPUT or BINARY file to obtain string size info

FREEFILE

Return the next available PowerBASIC file number

GET

Read a record from a random-access file

GET$            

Read a string from a file opened in binary mode

GRAPHIC INKEY$

Read a keyboard character if one is ready from the graphic window

GRAPHIC INPUT

Read data from the keyboard from within a graphic window

GRAPHIC INPUT FLUSH

Remove all buffered keyboard data.

GRAPHIC INSTAT

Determine whether a keyboard character is ready.

GRAPHIC LINE INPUT

Read an entire line from the keyboard from graphic window

GRAPHIC WAITKEY$

Read a keyboard character from the graphic window, waiting until one is ready.

GRAPHIC WINDOW CLICK

Check whether a graphic window has been clicked with the mouse

INPUT#

Load variables with data from a sequential file

INPUTBOX$

INPUTBOX$ displays a dialog box containing a prompt

LINE INPUT#

Read line(s) from a sequential file into a string variable or array

LOC

Determine the current seek position in an open disk file

LOF

Return the length of an open disk file

MSGBOX

Display a message box and get the users Ok/Cancel selection

MSGBOX

Display an informational message box and discard the users selection

PEEK

Return the byte at a specific memory location

PEEK$

Return a sequence of bytes starting at a specific memory location