ProcIn: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
PROCIN | |||
The '''ProcIn''' [[internal function]] returns 0 if input is from the screen. Returns 1 if input is from a [[procedure file]]. | The '''ProcIn''' [[internal function]] returns 0 if input is from the screen. Returns 1 if input is from a [[procedure file]]. | ||
Latest revision as of 00:47, 22 May 2014
PROCIN
The ProcIn internal function returns 0 if input is from the screen. Returns 1 if input is from a procedure file.
Comments and Examples
When RUN PROC is used to change programs to accept input from a procedure file instead of the screen, no code changes to the program are required. However, the input from the procedure is not echoed on the screen. The ProcIn variable can be tested in a program to provide this echo if desired.
00010 PRINT "Enter T for totals or D for detail" 00020 LINPUT A$ 00030 IF PROCIN=1 THEN PRINT A$