Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array Dimensions are invalid
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00253323
Message ID:
00253615
Views:
16
>Hi Nigel,
>
>Interestingly, DIMENSION a_array[0] or DIMENSION a_array[65001] generates an "Invalid subscript reference in VFP 6.0 SP3, rather than error 230. Further, DIMENSION a_array[33000, 2] generates a "Too many variables" error. In fact, the only way I was able to generate error 230 was to use the ERROR command. Now this was in the development environment rather than run-time, so your explaination could be correct in the latter. However, there are instances where spurious error messages are generated. For example, if you issue a SET ORDER TO MYTAG, and MYTAG doesn't exist, VFP generates a "Syntax Error". So I'm not so sure that the DIMENSION statement is the problem.
>
>Perhaps if Tim would post the line of code that's generating the error, we could get some more insight into this.

I found the same as you some time after I posted the reply (I was quoting from the help file). I couldn't generate the correct message either. BTW, I just happened to be working on the *Syntax Error* issue today at work!
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform