Denso RC5 Spezifikationen Seite 531

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 692
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 530
Chapter 18 Error Controls
18-3
ERRMSG$ (Function)
Function
Sets an error message.
Format
ERRMSG$ (<Arithmetic expression>)
Explanation
This statement sets the error message corresponding to the error number
designated with <Numeric expression>.
Related Terms
ERL, ERR, ON ERROR GOTO
Example
Ex. 1: DIM ls1 As String
ls1 = ERRMSG$(&H600C) '
Assigns the error message with an error number of &H600C to ls1.
Ex. 2: DIM Li1 As INTEGER
DIM Li2% (2, 3)
ON ERROR GOTO *Error1 '
Branches to the process routine *Error1 when the error
'
occurred.
FORLil=0TO3
Li2 (0, Li1) = 0
'When Li1 is 3, an error occurs and it then branches to the process
'routine of *Error1.
NEXT Li1
*R_Label:
END
*Errorl: 'Declares the *Errorl label.
S1= “Line” +STR$(ERL)+ “:” +ERRMSG$(ERR)
'Edits the error message.
PRINTMSG S1,2, “error” 'Outputs error information.
IF ERR = &H3B3E THEN
RESUME NEXT 'Returns to the line following the line where the
'error occurred.
ELSE
RESUME *R_Label 'Returns a line of *R_Label.
ENDIF
Seitenansicht 530
1 2 ... 526 527 528 529 530 531 532 533 534 535 536 ... 691 692

Kommentare zu diesen Handbüchern

Keine Kommentare