Denso BHT-200QW Specifikace Strana 82

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 587
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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.
Zobrazit stránku 81
1 2 ... 77 78 79 80 81 82 83 84 85 86 87 ... 586 587

Komentáře k této Příručce

Žádné komentáře