Evaluating a File Parameter
STD_PAR!(CAT%, FP%)
Searches for the Memo file given by PARAMETER and returns category and filepointer. If the file was found, the function returns true, false otherwise.
If an OWBasic program shall open a file after startup, it can be given a string parameter by the EXEC procedure. The parameter is stored in the global variable PARAMETER$.
Example:
! calling myprog
EXEC "myprog", -1, TRUE, "4,mymemofile" |
! myprog
#STD_USED=2
INCLUDE StdLib
if STD_PAR!(cat,fp) goto file_load_procedure
$main_menu
...
$file_load_procedure
FILEREAD 3, cat, fp
... |
|