Denso Power Net Terminal BHT-103 Spécifications Page 82

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 577
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 81
74
5.5.3 Variables Not Declared to be Global or Local
If not declared to be global or local, a variable is closed in each file where it is defined. A vari-
able used inside the
FUNCTION or SUB function without declaration is available only within a
function where it is defined.
(Example)
FUNCTION addaa(x)
addaa=aa%+x
END FUNCTION
SUB printaa(x)
print aa%+x
END SUB
aa%=2
print addaa(2)
printaa(2)
In the above example, all variables aa% used in "addaa," "printaa," and others will be treated
as different ones.
Vue de la page 81
1 2 ... 77 78 79 80 81 82 83 84 85 86 87 ... 576 577

Commentaires sur ces manuels

Pas de commentaire