Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Progammatically add fields to a 2.x table
Message
De
29/11/2000 18:43:45
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
 
 
À
27/11/2000 16:16:36
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00445848
Message ID:
00447111
Vues:
6
In addition to Cathy's solution, I sometimes find the following useful...

Example:
SELECT *, ;
SPACE(13) AS charfield1, ;
000.00 AS numfield2, ;
.F. AS logicfield3, ;
{ / / } AS datefield4 ;
FROM OldTable INTO NewTable

This will select all records, plus the new fields with blank templates, into a new table. The old table can then be deleted and the new table renamed.

Hope this helps,
Alan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform