Denso RC5 Specifications Page 258

  • Download
  • Add to my manuals
  • Print
  • Page
    / 692
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 257
11-8
RETURN (Statement) [Conforms to SLIM]
Function
Returns from a subroutine.
Format
RETURN
Explanation
This statement ends the execution of a subroutine to which control has been
transferred with a GOSUB statement and returns to the calling program.
Related Terms
GOSUB
Example
DIM li1 As Integer
IF li1 = 0 THEN 'When li1 is 0.
STOP 'Stops the execution of the program.
ELSEIF li1 = 1 THEN 'When li1 is 1.
GOTO *samp1 'Jumps to the label of *samp1.
GO TO *samp2 'Jumps to the label of *samp2.
ELSEIF li1 = 2 THEN 'When li1 is 2.
GOSUB *samp3 'Calls the subroutine of the label name*samp3.
ELSE 'When li1 is another value.
RETURN 'Returns to the calling program.
END IF 'Declares the end of the IF statement.
Page view 257
1 2 ... 253 254 255 256 257 258 259 260 261 262 263 ... 691 692

Comments to this Manuals

No comments