Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create Cursor from table structure
Message
 
À
02/08/2011 17:54:59
Joel Leach
Memorial Business Systems, Inc.
Tennessie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01519977
Message ID:
01519982
Vues:
58
>Anyone know of a utility to generate a CREATE CURSOR command from a table structure? I thought I've run across one over the years, but I can't find it now. This is just a one-time thing I could do manually, but there are a lot of fields in the table, so if there is a utility out there, I'll use it.
>
>Thanks.

I think something like this will do the job.
USE TABLE
AFIELDS(laStructure)
CREATE CURSOR c_test from ARRAY laStructure
[Update]
Another way is to just use SELECT

SELECT * FROM TABLE INTO CURSOR C_TEST READWRITE
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform