>Sergey,
>
>Thanks a million. Guess I'll need to make a change in my code.
I've avoided arrays for years just for this kind of reason. They never were unlimited. They are It always resulted in unfortunate crashes - no matter how long the code's been running - which has NOTHING to do with how good it is.
Now that they're virtually unlimited (in VFP9), I still see little point in them.
http://fox.wikis.com/wc.dll?Wiki~SEEKvsASCAN~DotNet>
>
>
>>The size of arrays in pre-VFP9 versions is limited to 65000 items. With 4 columns it comes down to 16250 rows. It's documented in
Visual FoxPro System Capacities help topic.
>>
>>>The following snippet has been in my program for over 4 years now....
>>>
>>>
>>>IF USED("nameplatv") AND RECCOUNT("nameplatv") > 0
>>> PUBLIC gaRecords
>>> DIMENSION gaRecords(RECCOUNT("nameplatv"),4) && Establish array
>>> .......
>>>
>>>
>>>Nameplatv is a cursor that contains the currrently selected customer's nameplate records.
>>>
>>>Why would the line DIMENSION gaRecords(RECCOUNT("nameplatv"),4) all of a sudden start returning the error "Invalid Subscript Reference"?
>>>
>>>Is there a limitation on the DIMENSION command? I've read the help menu and have seen nothing to indicate that.
>>>
>>>The customer record I'm dealing with has 16,357 records.