已知列名,行数,但类型未知,如何取值?

coolrain82 2004-10-19 03:19:45
如题。比如,有一字符串数组ls_column[],为数据窗口dw_1的所有列的集合,现依次取出列名,要取出dw_1中该列某行i的值,该如何实现?
...全文
89 3 打赏 收藏 举报
写回复
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
//////////////////////////////////////////////////////////////////////

参数:
datawindos ids_ds
long al_row
string as_column

返回:
any

功能:
读取指定DW某行某列的值


//////////////////////////////////////////////////////////////////////
  • 打赏
  • 举报
回复
//////////////////////////////////////////////////////////////////////

参数:
datawindos ids_ds
long al_row
string as_column

//////////////////////////////////////////////////////////////////////

long ll_col
any la_a
if al_row > ids_ds.rowCount () then return ''

ll_col = long (ids_ds.decribe (as_column + ".id") )
if ll_col > 0 then ls_a = ids_ds.object.data.primary.current [al_row , ll_col]

return la_a
  • 打赏
  • 举报
回复
照着书上给你写:
相关推荐
发帖
DataWindow

604

社区成员

PowerBuilder DataWindow
社区管理员
  • DataWindow社区
加入社区
帖子事件
创建了帖子
2004-10-19 03:19
社区公告
暂无公告