PROCREAD statement

Syntax

PROCREAD variable{THEN statements [ELSE statements] | ELSE statements}

Description

Use the PROCREAD statement to assign the contents of the primary input buffer to a variable. Your BASIC program must be called by a procedure. If your program was not called from a procedure, the ELSE statements are executed; otherwise the THEN statements are executed.

If variable evaluates to the null value, the PROCREAD statement fails and the program terminates with a run-time error message.