Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrays & Loading from a table
Message
De
24/02/2003 17:34:28
 
 
À
24/02/2003 17:19:20
Andy Roth
Neyenesch Printers
Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00757277
Message ID:
00757289
Vues:
19
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform