12-53
Creating A Script File
ONERROR
Syntax:
ONERROR <action>
This command will perform the specified action when it encounters an error while the
script program is running, where
<action>
can be one of the following:
REPORT
will display a message box indicating the type of error and the
program line that caused it.
IGNORE
will ignore any errors encountered in the program.
GOTO <label>
will cause the program to go to the line with the specified label
when an error is encountered.
GOSUB <label>
will cause the program to go to the line with the specified label
when an error is encountered and then
return
to the line fol-
lowing the error.
Refer to the
Script Error Trapping Functions
section later in this chapter.
PACK
Syntax:
PACK <result>
<string>
This command will remove redundant spaces between ASCII characters in a string,
together with any spaces and tabs before and after the string, and place the resulting
string in a variable.
<result>
is a previously defined string variable (see
var
) which will contain the
modified string.
<string>
is the string or variable containing the string to be packed.
This is useful to prevent an otherwise valid user response becoming invalid due to
extra spaces. See also
packtab
.
PACKTAB
Syntax:
PACKTAB <result>
<string>
This command will reduce multiple spaces and/or tabs in a string into a single tab,
convert single spaces into tabs if a digit follows, and place the resulting string in a
variable.
<result>
is a previously defined string variable (see
var
) which will contain the
modified string.
<string>
is the string or variable containing the string to be packed.
This is useful for making data suitable for a spreadsheet. See also
pack
.
Содержание -05W
Страница 1: ...TeemTalk 05W 07W 11W User s Guide...
Страница 38: ...2 24 Getting Started Notes...
Страница 58: ...3 20 Keyboard Configuration Notes...
Страница 152: ...8 20 File Transfer Notes...
Страница 162: ...9 10 ICL FTF File Transfer Notes...
Страница 324: ...13 32 Dynamic Data Exchange Text1 i 12 LinkItem 0 i 80 Text1 i 12 LinkMode 1 Next i End If End Sub...
Страница 336: ...C 6 Key Reference Numbers Notes...
Страница 360: ...E 16 Host Command Summary Notes...
Страница 370: ...Index 10 Index X XMODEM 8 1 XMODEM 1K 8 1 Y YMODEM Batch 8 2 Z ZMODEM 8 2 Zoom Button 2 17...