Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alter Table question
Message
De
10/11/2009 02:03:56
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01433924
Message ID:
01433954
Vues:
46
You could put this code in the form which runs the database. Change the filename and fieldname.
USE filename
COPY STRUCTURE TO tempx extended
USE tempx
LOCATE FOR field_name=upper(fieldname)
IF field_dec = 0
	USE filename EXCLUSIVE
	ALTER TABLEfilename alter COLUMN fieldname n(10,2)
ENDIF
CLOSE data
erase("tempx.dbf")
Hope this helps.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform