Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I get the code used to create a table
Message
De
27/06/1997 09:49:20
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00037407
Message ID:
00037924
Vues:
29
> > I have a table and I would like to reproduce the structure of it in an SQL > command and/or to create a cursor exactly like it. > > Is there a way I can do this? select the_table =afields(aStru) create cursor whatever_the from array aStru rele aStru Now you have a cursor with identical structure as the table. Just beware the old bug - if any of the field names in the table begins with an underscore, this won't work. For SQL, simple Sele * from the_table into the_cursor ....gives you the identical structure, but all the data as well, and the cursor is read_only (you can work around this opening it AGAIN in another workarea with a different alias). You can (I've just tried it now) Sele * from the_table into the_cursor where .f. and you get empty cursor with identical structure.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform