Brightsign BrightScript 3.0 Reference Manual Manual de usuario Pagina 18

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 75
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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:
Vista de pagina 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 74 75

Comentarios a estos manuales

Sin comentarios