Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBCXGetProp doesn't get core property?
Message
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00209914
Message ID:
00304675
Views:
36
Doug,

I found this thread and I am a little confused. I would like the ability to read/write the field captions in my database. This way I can let my users change on screen field labels and have those changes reflected in both SFQuery and SFReports.

Your suggestion below talks about adding the field captions into the meta data, is this still the preffered way?

Kind Regards,

Mat

By Copy to Bob: How did you decide to handle this?


>Hi Bob.
>
>>oMeta.SetDataBase('MyData')
>>oMeta.DBCXGetProp('MyTable.MyField','FIELD','Caption')
>>
>>It returns nothing... I can see the caption in both the SDT Ap and in the DataBase if I modify the table and select that field.
>
>I replied to your email on this, but figured I'd also answer it here if anyone else was curious.
>
>The reason it returns nothing is that SDT uses the DBC Caption property for
>a field. The DBCX Caption property is intended for those data objects (eg
>tables and indexes) that don't have a native Caption property.
>
>That said, you could easily put field captions into the meta data so you can
>use DBCXGetProp. A simple program could spin through all fields in all
>tables, use DBGETPROP to read the field caption from the DBC, and
>DBCXSetProp to store the caption in the meta data.
>
>Doug
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform