Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Progammatically add fields to a 2.x table
Message
From
29/11/2000 18:43:45
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
 
 
To
27/11/2000 16:16:36
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00445848
Message ID:
00447111
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform