Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing new field properties
Message
From
06/05/2004 11:20:02
 
 
To
06/05/2004 11:08:05
Dave Nantais
Light speed database solutions
Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00901584
Message ID:
00901590
Views:
14
This message has been marked as the solution to the initial question of the thread.
>If I add a new property to a field entitled "WebControlType"
>How do I access the value of that property programmatically?

You should have an object reference to the DBCx Manager, and you can use that. Here's the code (including instanciating the Meta Manager):
* Setup the Dbcx Manager
oMeta = newobject('DBCXMgr', 'DBCXMgr.vcx', '', .F., lcMetaDataDir)
oMeta.SetDatabase(dbc())

* Get a property of a specific field
oMeta.dbcXGetProp(cFieldName, "FIELD", "WebControlType")

* Get an array of fields for a certain property
oMeta.dbcxGetAllobjects('field', @laFields, '', 'WebControlType', 'MyType')
That last line is pretty cool, it will get you an array of all the fields in the database where the WebControlType is "MyType"... at least I think I got the syntax right. Doug will probably correct me if I don't :-)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform