Denso Power Net Terminal BHT-103 Spezifikationen Seite 82

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 577
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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.
Seitenansicht 81
1 2 ... 77 78 79 80 81 82 83 84 85 86 87 ... 576 577

Kommentare zu diesen Handbüchern

Keine Kommentare