Label. DORIC 9.65, INFO-Text software
विज्ञापन
विज्ञापन
LABEL
LAB
EL label_name
identifies a location within a program or input form, marking that location for use by GOTO statements within the same program section.
argument
label_name name that identifies a command line in an
INFO program or input form.
notes example
n
The LABEL command labels a line in an INFO program or input form as the destination of a GOTO or branch command in that program or input form.
n
You can include up to 100 LABEL statements within each program section. as input form Any number of GOTO statements can refer to the same label name.
n
As noted for the GOTO command, corresponding GOTO and LABEL commands in programs must be in the same program section.
n
See the command reference for INPUT FORM for a discussion of labels in input forms.
The first time the program processes LABEL TRY.AGAIN, it does nothing. If an invalid department number is added, the error message is displayed and the GOTO command sends INFO back to the label.
10000 PROGRAM SECTION ONE
.
.
20000 PROGRAM SECTION TWO
20001 LABEL TRY.AGAIN
20002 DISPLAY 'ENTER DEPT NUMBER:',=
20003 ACCEPT $NUM1
20004 IF $NUM1 < 10 OR $NUM1 > 700
20005 DISPLAY 'INVALID DEPT NUMBER. PLEASE ENTER AGAIN.'
20006 GOTO TRY.AGAIN
20007 ENDIF
.
INFO Reference Manual Commands 323
डाउनलोड
विज्ञापन