Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieving calculated fields from SDT
Message
From
14/11/2002 14:27:30
 
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00722236
Message ID:
00722879
Views:
14
Hi Nick.

>I am trying to create a cursor based on payroll_tbl created in SDT which contains regular and calculated fields. I need to add a calcuated field in my select statement.

Use DBCXGetProp to get the expression for the calculated field, then include it in the SQL SELECT statement. For example:
lcExpr = oMeta.DBCXGetProp('MYTABLE.MYCALCFIELD', 'User', 'Expression')
select Field1, Field2, &lcExpr as MyCalcField from MyTable
Doug
Previous
Reply
Map
View

Click here to load this message in the networking platform