The PROCWRITE statement writes data into the primary input buffer of the calling Proc.
Format
PROCWRITE expr |
Parameter(s)
expr |
An expression evaluating to the string to be written into the primary input buffer. |
Description
The PROCWRITE statement writes to the primary input buffer of a calling Proc. Any previous data in the primary input buffer are erased and replaced by the given data.
See PROCREAD Statement for information about reading from the primary input buffer.
Example
In this application, the program asks the operator if reports should be printed out. The response is used in the program, but is also passed to the calling Proc with PROCWRITE.
PRINT "SEND RESULTS TO THE PRINTER? (Y OR N)" : INPUT ANSWER, Y IF ANSWER = "Y" THEN PRINTER ON . . . END PROCWRITE ANSWER |
See Also