当前位置: 代码迷 >> PB >> 列表控件编程有关问题,求解
  详细解决方案

列表控件编程有关问题,求解

热度:153   发布时间:2016-04-29 09:23:21.0
列表控件编程问题,求解
列表框的DoubleClicked事件,脚本代码如下:
int i
string s
if this.totalselected()=1 then
i=this.selectedindex()
s=this.selecteditem()
lb_1.additem(s)
this.deleteitem(i)
end if
双击后不能将一个列表框中的内容移动到另一个列表框中,望高手指点。

------解决方案--------------------
没怎么用LB 控件,
估计是你的方法没对。
------解决方案--------------------
你调试一下看看
i=this.selectedindex()
s=this.selecteditem()

的返回值是多少。

另外:DoubleClicked里有个参数index
用它就可以知道你点的是哪个
  相关解决方案