Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to create a table from an array.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00025095
Message ID:
00025103
Vues:
30
>I need to create a cursor or table from an array. The program doing the creating is simply being passed the array and has no idea of how many columns it has or the width or datatype of each of the columns.
>
>I can get the # of columns easy enought, the issue is creating a CREATE CURSOR statement that will have the proper syntax that I can then fill from the array.
>
>I've got some code that "sort of" works, but somehow it seems kludgy. Looking for any good suggestions here.
>
>Thanks,
>Steve Despres
>sdespres@erols.com


Why don't you use the fox command CREATE TABLE ..... FROM ARRAY arrayname ?
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform