关于数据窗口使用string数组参数的问题

toutou 2002-11-01 03:11:50
我可以给数据窗口对象定义一个string array 型的参数,但我如何像普通数组那样使用这个参数?比如:index string array ,而index[1],index[2],index[3]...
在数据窗口对象里如何取?
...全文
272 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
caic 2002-11-05
  • 打赏
  • 举报
回复
加伪列,用setitem(row,col,index[i])
toutou 2002-11-05
  • 打赏
  • 举报
回复
我的是想问一下可以实现在数据窗口显示中分别引用这个参数数组中的各个变量的值,如,参数为:index string array ,在数据窗口中,我可以加若干个计算列,使它们的表达式分别为 index 数组中index[1],index[2]...的值,以用来显示、打印。并不是想取得计算列的值再给数组赋值,相反是以参数的形式把一组数据传送到数据窗口中用来显示。
joss 2002-11-05
  • 打赏
  • 举报
回复
同意楼上观点
balloonman2002 2002-11-01
  • 打赏
  • 举报
回复
计算列也可以用GETIEMSTRING(ROW,COL)的,:)
balloonman2002 2002-11-01
  • 打赏
  • 举报
回复
如:
This example also illustrates retrieval arguments. Assume dw_EmpHist contains this SQL SELECT statement and emps is defined as a number array:

SELECT EmpNbr, Sal, Rgn From Employee

WHERE EmpNbr IN (:emps)

These statements cause dw_EmpHist to retrieve Employees from the database whose employee numbers are values in the array emps:

Double emps[3]

emps[1] = 100

emps[2] = 200

emps[3] = 300

dw_EmpHist.Retrieve(emps)

jeking 2002-11-01
  • 打赏
  • 举报
回复
那就取就算列的值啊
toutou 2002-11-01
  • 打赏
  • 举报
回复
我想在数据窗口里加计算列,每个计算列的值分别是index[1],index[2],index[3]...
pbworm 2002-11-01
  • 打赏
  • 举报
回复
你要实现什么样的功能啊?

606

社区成员

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

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