求大神指点迷津!!!powerbuilder关于窗口和窗口之间的联系

qq_38586489 2017-04-29 03:05:25


我想在这个窗口里面选择了之后在后面个窗口里面的数据窗口显示了的内容与前一个窗口所选的相关
...全文
2039 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
songxin9909 2018-03-09
  • 打赏
  • 举报
回复
果然不错,就是这样弄
boyoer 2018-03-06
  • 打赏
  • 举报
回复
w_1 传递参数 openwithparm(w_2,ls_type) w_2 接受参数 ls_type = message.stringparm
seven125 2017-05-09
  • 打赏
  • 举报
回复
楼上版主正解
WorldMobile 2017-05-05
  • 打赏
  • 举报
回复
用openwithparm来打开后一个窗口,并且把参数传递过去 string ls_data ls_data = "aaaa" openwithparm(w_2, ls_data)
sbks 2017-05-02
  • 打赏
  • 举报
回复
这个要学习窗口的遍历与窗口控件的遍历,把对应的实例给找出来,就可以了 之所以要遍历,是因为pb没有办法知道这些内容的句柄,只能通过名称来遍历,当控件的classname()跟你想要的一致时,就返回.例如,要在某窗口找指定名称的文本控件 global type f_find_st from function_object end type forward prototypes global function statictext f_find_st (ref window aw_win, string as_name) end prototypes global function statictext f_find_st (ref window aw_win, string as_name);//遍历控件,找到同名的 long i,ll_rc statictext rn ll_rc = upperbound(aw_win.control) for i = 1 to ll_rc if aw_win.control[i].classname()=as_name then rn = aw_win.control[i] exit end if next return rn end function 那么,在使用时就很简单了 statictext lst_tmp lst_tmp = f_find_st(w_rep_xxx,'st_shop') 接下来就可以对lst_tmp进行各种操作了
qq_1919561306 2017-04-30
  • 打赏
  • 举报
回复
openwithparm(window,string)
ckc 2017-04-30
  • 打赏
  • 举报
回复
在后面的窗口里写个函数切换显示,在前面的窗口里选择之后调用这个函数

740

社区成员

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

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