如何得到dw内控件的属性,比如...

sanshui_yangfei 2003-08-20 03:09:18
在dw中有一个computed filed的名为cf,我在其他地方编程时(dw之外)怎么得到它的当前值,或其他属性。
...全文
85 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
klbt 2003-08-20
  • 打赏
  • 举报
回复
直接用getitem函数,cf如果是数字:
dw_1.GetItemNumber(1, "cf")
runsoft 2003-08-20
  • 打赏
  • 举报
回复
dw_1.object.cf[1]
dotnba 2003-08-20
  • 打赏
  • 举报
回复
属性:
dw_control.Object.controlname.Band
值:
Row numbers for computed fields When you refer to an control in a band other than the detail band (usually a computed field) you still specify a row number. For the header, footer, or summary, specify a row number of 1. For the group header or trailer, specify the group number:

dw_1.Object.avg_cf[1]

If you specify nothing after the computed field name, you refer to the computed field DWObject, not the data. For a computed field that occurs more than once, you can get all values by specifying buffer or datasource instead of rownum, just as for columns.

609

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder DataWindow
社区管理员
  • DataWindow社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧