Denso BHT-200QW Dokumentacja Strona 82

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 587
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
variable 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.
Przeglądanie stron 81
1 2 ... 77 78 79 80 81 82 83 84 85 86 87 ... 586 587

Komentarze do niniejszej Instrukcji

Brak uwag