Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays & Loading from a table
Message
From
24/02/2003 17:34:28
 
 
To
24/02/2003 17:19:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00757277
Message ID:
00757289
Views:
13
>Is there an easy way to laod a 2 dimensional array from an existing
>table?
>
>Will the array expand automaticly if the rows exceed the orignal
>declaration?
>
>Thanks
>Andy
SELECT field1, field2 FROM yourtable INTO ARRAY yourarray
This will give you an array sized to the number of records from the table. You can limit the records using a WHERE clause on the SELECT statement. If there are no records selected, the array won't get created if it doesn't exist, nor will it be resized if it did already exist. You can check for the number of records by using the _TALLY system variable after the SELECT.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform