I want to know how to specify a function to return an array. Not associated array, an Array. It seems obvious but defining it like this doesn’t seem to work.
function Foo() as Array
return
end function
I looked around but I haven’t found an existing problem within the internet
I want to know how to specify a function to return an array. Not associated array, an Array. It seems obvious but defining it like this doesn’t seem to work.
function Foo() as Array
return
end function
bar = Foo()
function Foo() as Array
bar = [0,1]
return bar
end function
As far as I know you can’t specify an Array, only Object
You can have:
Integer
Float
String
Boolean
Object (a catchall for Roku objects such as Array, Associative Array, other?)
“Komag” wrote:
Object (a catchall for Roku objects such as Array, Associative Array, other?)
Yes. Object captures all things “ro-”. and { } are roArray and roAssociativeArray, respectively.