Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you modify the structure of a table programmatically
Message
 
 
To
07/01/1999 10:58:53
Ernie Veniegas
Micro System Solutions, Inc.
Calistoga, California, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00173544
Message ID:
00173607
Views:
23
Ernie,

I use code like this to update table structures:

open database TheDatabase
set database to TheDatabase
use TheTable
if ( type( "TheTable.aNewField" ) == "U" )
alter table ...
endif
use

>Is it possible to modify a table programmatically with the run-time version of VFP? I have an EXE out there and I need to add some fields to one of the the users table. Could I do this programmatically? For example, use the table, determine if the field already exists, and if not, add the field(s). Can this be done? Also, what happens to the database container behind the scenes? Will the runtime version of VFP also maintain the container? Same question for creating an index programmatically.
>
>Any help appreciated ... thanks in advance.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform