Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IF and THEN based error.
#1
[Image: errorfb.bmp]

Whenever I try to run my program, I get this error. Is this just a case of "beta version" syndrome, or am I messing up myself somehow? Because this line remains working in QB. Here's line 225.

Code:
IF director%(I) = 0 THEN XV%(I) = -Power \ 3

Help would be appreciated. Thank you.
Reply
#2
i don't think so... first of all, is director%() dimensioned as an array? and do you need that % in there? I don't really know what more to do unless there's more code.
Jumping Jahoolipers!
Reply
#3
FB won't allocate arrays implicitly, but it wouldn't complain if indexes were used on a scalar variable, the error would appear because ()'s weren't parsed with non-arrays.

I added an specific error message now, so things are more clear.. it will be included on the next release..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)