Brightsign BrightScript 3.0 Reference Manual Bedienungsanleitung Seite 18

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 75
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 17
13
array=CreateObject("roArray", 10, true)
array[2]="two"
print array[2]
fivevar=five
print fivevar()
array[1]=fivevar
print array[1]() ' print 5
function five() As Integer
return 5
end function
Array Dimensions
Arrays in BrightScript are one dimensional. Multi-dimensional arrays are implemented as arrays of arrays. The []
operator will automatically map multi-dimensionality. For example, the following two fetching expressions are the same:
dim array[5,5,5]
item = array[1][2][3]
item = array[1,2,3]
Note: If a multi-dimensional array grows beyond its hint size, the new entries are not automatically set to roArray.
Equals Operator
The = operator is used for both assignment and comparison:
Seitenansicht 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 74 75

Kommentare zu diesen Handbüchern

Keine Kommentare