Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array Dimensions are invalid
Message
From
13/08/1999 08:01:42
Kenneth Downs
Secure Data Software, Inc.
New York, United States
 
 
To
13/08/1999 03:38:53
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00253323
Message ID:
00253342
Views:
27
Tim,

Have you fixed the "invalid subscript" problem? And if so, did it solve the customer's problem?

Stupid things I have done that I don't want to admit that cause these problems:

1. Forget the ",1" in ALEN, such as FOR RowNumber = 1 TO ALEN(My2DArray)
2. Hardcoding array dimensions and populating them with a bunch of MyArray[x,y] = MyValue, then adding more assigns and forgetting to change the dimensions
3. Redimensioning on the fly and losing track of the size. To prevent this, always use MyMaxRow = ALEN(My2DArray,1) or ALEN(My2DArray,2)




>A customer gets the message:
>"Array dimensions are invalid"
>Error 230
>
>I can't seem to trigger this message myself.
>
>In what cases will this error occur???
>
>I only can get "invalid subscript reference" messages.
Previous
Reply
Map
View

Click here to load this message in the networking platform