Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBCXGetProp doesn't get core property?
Message
From
20/04/1999 11:14:03
 
 
To
19/04/1999 17:02:16
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00209914
Message ID:
00210120
Views:
49
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform