
7-6
Section
Details of BASIC Commands
214
resume
Syntax:
RESUME
[(<line number> |
NEXT
)]
Description:
Statement. Resume program execution after an error handling operation.
Remarks:
<line number> is any valid line number in the BASIC program from which execution will resume.
The valid range is [0…65535].
If <line number> is omitted or set to 0, program execution will be continued at the statement that
caused the error.
If
NEXT
is specified execution will resume at the line after the line that caused the error.
Examples:
> 10 B = 6
> 20 ON ERROR GOTO 80
> 30 FOR A = 1 TO 10
> 40 PRINT A, B, A/B
> 50 B = B-1
> 60 NEXT A
> 70 END
> 80 PRINT "ERROR HAS OCCURRED"
> 90 B = 5
> 100 RESUME
1
6
.166667
2
5
.4
3
4
.75
4
3
1.33333
5
2
2.5
6
1
6
ERROR HAS OCCURRED
7
5
1.4
8
4
2
9
3
3
10
2
5
>
See also:
ERROR
,
ON ERROR
right$
Syntax:
RIGHT
$ (<string expression>, < numerical expression>)
Description:
Function Returns the specified number of characters starting from the rightmost position in a
string expression.
Remarks:
<string expression> is the string to be searched.
<numerical expression> is the number of characters to be returned. The valid range is : [1…255].
If the number of characters to be returned is 0 then a null string is returned. If the number of
characters to be returned is greater than the number of characters in the search string then the
entire search string is returned.
Examples:
> 10 A$ = RIGHT$("HELLO WORLD", 5)
> 20 PRINT A$
> RUN
WORLD
See also:
LEFT
$,
MID
$
Содержание C200H-ASC11
Страница 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Страница 2: ...iv...
Страница 4: ...vi...