Brightsign BrightScript 3.0 Reference Manual Manuel d'utilisateur Page 12

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 75
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 11
7
Type Float: A number with a decimal (e.g. 2.01), in scientific notation (e.g. 1.23456E+30), or with a Float type
designator (e.g. 2!)
Type Double: A number in scientific notation containing a double-precision exponent symbol (e.g. 1.23456789D-
12) or with a Double type declaration (e.g. 2.3#)
Type Function: Similar to variable formatting (e.g. MyFunction)
Type Integer: LINE_NUM The current source line number
Array Literals
The Array Operator ([])can be used to declare an array. It can contain literals (constants) or expressions.
Myarray = []
Myarray = [ 1, 2, 3]
Myarray = [ x+5, true, 1<>2, ["a","b"]]
Assoiative Array Literals
The Associative Array Operator ({}) can be used to define an associative array. It can contain literals (constants) or
expressions.
aa={ }
aa={key1:"value", key2: 55, key3: 5+3 }
Arrays and associative arrays can also be defined with the following format:
aa = {
Myfunc1: aFunction
Myval1 : "the value"
}
Vue de la page 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 ... 74 75

Commentaires sur ces manuels

Pas de commentaire