Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Komag
Level 10

Can I no longer use "c" as a variable? <Function: c>?

Jump to solution

Suddenly my game crashes with "Attempt to use a non-numeric array index not allowed."

My variable is:

c Integer val:24 (&h18)

But when I type ? c I get <Function: c>

What is that?

If you keep changing how BrightScript behaves you're going to break channels!

0 Kudos
1 Solution

Accepted Solutions
Komag
Level 10

Re: Can I no longer use "c" as a variable? <Function: c>?

Jump to solution

I feel REALLY dumb - it was my fault! I found where I had typo'd and replaced the name a function with "c", thus creating the whole problem. Thanks for your reply anyway!

View solution in original post

0 Kudos
4 REPLIES 4\
Komag
Level 10

Re: Can I no longer use "c" as a variable? <Function: c>?

Jump to solution

This is a HUGE pain the behind! I have hundreds of uses of c as a variable. I know I can't use m as a variable, but many many functions I've set up with a = "such and such", b = "this and that", c = "another thing", etc. I'm forced to search through a huge codebase to try to find them all!

0 Kudos
renojim
Community Streaming Expert

Re: Can I no longer use "c" as a variable? <Function: c>?

Jump to solution

Hmm... I just sideloaded something on my Ultra 4800 that's on 10.5.0 build 4201, broke, and typed "?c" and got

Brightscript Debugger> ?c
Warning: operation may not be interruptible. <UNINITIALIZED>

I don't recall seeing that warning before, but I can use 'c'.  One would hope Roku isn't using one letter functions in some library, but it doesn't appear to be something like 'm'.

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
Komag
Level 10

Re: Can I no longer use "c" as a variable? <Function: c>?

Jump to solution

I feel REALLY dumb - it was my fault! I found where I had typo'd and replaced the name a function with "c", thus creating the whole problem. Thanks for your reply anyway!

View solution in original post

0 Kudos
renojim
Community Streaming Expert

Re: Can I no longer use "c" as a variable? <Function: c>?

Jump to solution

@Komag wrote:

I feel REALLY dumb - it was my fault!


Been there, done that! Smiley Happy

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos