Brightsign BrightScript 2 Reference Guide Bedienungsanleitung Seite 22

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 59
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 21
22
Scope
BrightScript uses the following scoping rules:
Currently all related BrightScript code must reside in one file. This set of code is
known as a “module”.
BrightScript does not support global variables. Except, there is one hard-coded
global variable “global” that is an interface to the global object. The global object
contains all global library functions.
Functions declared with the FUNCTION statement are at global scope, unless
they are anonymous, in which case they are local scope.
Local variables exist with function Scope. If a function calls another function,
that new function has its own scope.
Labels exist in function scope.
Block Statements (like FOR-NEXT or WHILE-END WHILE) do not create a
separate scope
Seitenansicht 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 58 59

Kommentare zu diesen Handbüchern

Keine Kommentare