retrieve参数相关问题.

pb2000 2003-09-29 11:35:53
我的数据窗口中设置了几个retrieve参数,其中一个是string array,where条件使用where xhy in (:ls_xhy),如果我想让xhy范围取全部值时(值过多,全部列出太多)怎么办?我试了试retriev('%')程序不能通过,该怎么做好?

还有一个小问题,PB中有没有类似VB中的那个函数,可以将“100,200,3000,4000”这样的变量一下放入数组?
...全文
143 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
HermanG 2003-09-30
  • 打赏
  • 举报
回复

Integer No[]

No[] = {1,2,3}

aa.Retrieve(No)
出现
Retrieve argument 1 does not match expected type

aa.Retrieve(aAreaNo[1])就没事


wantsong 2003-09-29
  • 打赏
  • 举报
回复
要把
string ls_s = "100,200,3000,4000"放入
int li_i[]
必须自己写函数
wantsong 2003-09-29
  • 打赏
  • 举报
回复
要想取全部值只好
GetSQLSelect()
SetSQLSelect()了
daizhihui_1 2003-09-29
  • 打赏
  • 举报
回复
同意
chenxf220403 2003-09-29
  • 打赏
  • 举报
回复
可以在Retrieve中使用数组的,
integer li_menuid[]
ll_return = dw_module.retrieve(li_menuid)
没有问题!
klbt 2003-09-29
  • 打赏
  • 举报
回复
1、意思不太明确,“全部值”的具体取法?

2、string xhy[]={'100','200','3000', '4000'}
workhand 2003-09-29
  • 打赏
  • 举报
回复
要把
string ls_s = "100,200,3000,4000"放入int li_i[]
自己写函数应该好写,
另一个显示所有数据好像不太容易
jdsnhan 2003-09-29
  • 打赏
  • 举报
回复
to chenxf220403(基督山伯爵)

integer li_menuid[]
// 此时数组没有初始化赋值,为空,那么 in一个空数组,肯定是错误啊!
dw_module.retrieve(li_menuid)
eminena 2003-09-29
  • 打赏
  • 举报
回复
SELECT EmpNbr, Sal, Rgn From Employee WHERE EmpNbr IN (:emps) ;
对于以上的 SQL 语句,可以:

Double emps[3]
emps[1] = 100
emps[2] = 200
emps[3] = 300
dw_EmpHist.Retrieve(emps)
jdsnhan 2003-09-29
  • 打赏
  • 举报
回复
如果不知道数组确切的数据和范围,不能用in检索出所有数据。
yao555 2003-09-29
  • 打赏
  • 举报
回复
up chenxf220403(基督山伯爵)

609

社区成员

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

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