Brightsign BrightScript 3.0 Reference Manual Manual de usuario Pagina 50

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 75
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 49
45
End Function
“m” Identifier
If a function is called from an associative array, then the local variable m is set to the associative array in which the
function is stored. If the function is not called from an associative array, then its m variable is set to an associative array
that is global to the module and persists across calls.
The m identifier should only be used for the purpose stated above: We do not recommend using m as a general-purpose
identifier.
Example:
sub main()
obj={
add: add
a: 5
b: 10
}
obj.add()
print obj.result
end sub
function add() As void
m.result=m.a+m.b
end function
Vista de pagina 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 74 75

Comentarios a estos manuales

Sin comentarios