For starters, you're passing the wrong parameters to DBCXGetProp(). The comments in the code should show you what you need.
Dan
>Hello all. I am attempting to read field captions from a VFP table built with SDT.
>I am trying to use DBCXGetProp, but I am having problems getting the syntax right. I want to get the caption of a field and store it for use in a query.
>This is what I am trying:
>
>oMeta = newobject('DBCXMgr', 'DBCXMGR.VCX')
>oMeta.oSDTMgr.DBCOpen('iepoint.DBC', '', 1)
>oMeta.SetDatabase(dbc())
>? oMeta.DBCXGetProp('student', 'cfirstname', 'Caption')
>
>This simply returns .NULL.
>Obviously, it doesn't work. What am I doing wrong?
>TIA
>Amanda