Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alter Table question
Message
From
10/11/2009 02:03:56
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01433924
Message ID:
01433954
Views:
45
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform