94
LOADNAMES “C:\Documents\Comms\BBSnames”
SAVENAMES
saves all the current names information in a specified file.
E.g.
SAVENAMES “C:\Documents\Names\Newnames”
L
OWER
see
U
PPER
M
ENU
MENU <string exp>
<string exp> GOTO <label>
<string exp> GOTO <label>
…
ENDMENU
Offers a menu of options to the user. Each option jumps to a particular
label when it is chosen. E.g.
MENU “Choose action”
“Connect to server” GOTO logon
“Upload file” GOTO sendfile
“Download file” GOTO downl
“Exit” EXIT
ENDMENU
creates a menu with the heading “Choose action” from which the user can
select one of four actions (e.g. “Upload file” etc). The script then carries out
the command next to the menu item, e.g. jumping to “sendfile” for the
“Upload file” menu item. Menu items can only be followed by
GOTO
or
EXIT
commands.
MENU
requires a matching
ENDMENU
command.
M
ID
MID (<string exp>,<value>[,<value>])
Extracts part of a string or variable, beginning a specified number of
characters (indicated by the first value) from the left. E.g.
logfilename$=“C:\files\log1”
INFO “...” & MID (logfilename$,9)
will display “...log1” in the terminal screen. The optional second value
allows you to specify the number of letters to be extracted. E.g.
SEND MID (“password15”,4,4)
will just send the characters ‘
word
’.
M
OVE
MOVE <filename>,<string exp>
Moves a file, from the location specified in the first string expression to the
location specified in the second. E.g.
MOVE “C:\Logs\Capture”,“C:\Email\”
N
OT
see
A
ND
O
N ERROR GOTO
ON ERROR GOTO <label>
O
N ERROR OFF
ON ERROR OFF