Denso RC5 Spécifications Page 208

  • 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 207
8-26
8.16.2 Calling with Reference
A local variable can be passed as an argument.
To designate an entire array as an argument, put the array name in
parentheses.
When the contents of a variable passed by calling with reference are changed
in the program to be called, the change is valid even if the flow returns to the
calling program.
Example 1: If you call the program PROGRAM SUB1 (AA#)
If a local variable is passed 1 (When DD has been declared with DEFDBL)
CALL SUB1 (DD#)
If a local variable is passed 2 (When DA has been declared with DEFDBL)
CALL SUB1 (DA)
Note: A value must be assigned to a local variable beforehand. In the
following case, use a value to pass.
CALL SUB1 (D1)
Example 2: If the program PROGRAM SUB2 (BB% (10)) is called
If the entire array is called (When AB% (10) has been declared with DIM)
CALL SUB2 (AB% ())
Vue de la page 207
1 2 ... 203 204 205 206 207 208 209 210 211 212 213 ... 691 692

Commentaires sur ces manuels

Pas de commentaire