Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
gomad
Roku Guru

roAssociativeArray issue

I am trying the check if my AA has something in it, so i did AA.count() > 0, it gives me an error :
Function Call Operator ( ) attempted on non-function. (runtime error &he0) in $LIVECOMPILE(3).
E.g:
AA = {
a: 34
b:dsd
count:54
}
The problem was the "count" key in the associative array. Is this expected??
0 Kudos
1 REPLY 1
Komag
Roku Guru

Re: roAssociativeArray issue

yeah, having a key name the same as the count() function name, that's sure to brew up trouble!
0 Kudos