Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DIMENSION returns
Message
From
07/09/2006 08:57:42
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01151573
Message ID:
01151720
Views:
27
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform