“pcnweb” wrote:
I have arrays holding my row info like so:
m.options
m.options1
m.options2
etc…
I want to pass them from roGridScreenEvent to my function by appending the msg.GetIndex() to m.options, ex:
myopt = m.options+msg.GetIndex()
but that fails - do you have to cast everything to strings, then to something else? Can’t figure it out or find examples in the docs.
If m.options is an array of integers, apparently from your example, then you would append a new one to it by doing m.options.Push( msg.GetIndex() ). https://sdkdocs.roku.com/display/sdkdoc/ifArray
Seems like it would be easier to make m.options be an array, so you could say m.options[2] rather than m.option2. But if you really want to do this, then yes, you must do string manipulations, like