Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically setting the field caption in a table.
Message
 
To
18/02/1999 12:15:10
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00188894
Message ID:
00188913
Views:
60
>>>... I want to write a program to update the caption for each field. I thought I found the solution with the ALTER TABLE command, but there does not seem to be an option to change the caption. Any Ideas?
>>
>>Hi Ken,
DBSETPROP('ALIAS.FIELD', 'Field', 'Caption', "Caption")
For renaming columns check "alter table..rename column".
>>Cetin
>More explanatory :)
DBSETPROP('CUSTOMER.CONTACT', 'Field', 'Caption', "This is my contact caption")
Cetin

Thanks Cetin

Works great. I wrote my little program and the "caption" job was done in a few seconds. I'm a VFP rookie, but I should have thought to look at that DBSETPROP command -- I knew that the caption data was stored in the DBC -- not the table.

Thanks again.
Ken Russell
Mechanicsville, Virginia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform