Denso RC5 Spécifications Page 258

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 692
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 257
1 2 ... 253 254 255 256 257 258 259 260 261 262 263 ... 691 692

Commentaires sur ces manuels

Pas de commentaire