Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing new field properties
Message
From
06/05/2004 11:38:26
Dave Nantais
Light speed database solutions
Ontario, Canada
 
 
To
06/05/2004 11:20:02
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00901584
Message ID:
00901598
Views:
17
>>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 :-)

I am really disappointed that it took almost 12 minutes to get the answer to a fairly advanced VFP question...

just kidding....
thanks!!!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform