首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

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

2012-03-18 
列表控件编程问题,求解列表框的DoubleClicked事件,脚本代码如下:int istring sif this.totalselected()1

列表控件编程问题,求解
列表框的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
用它就可以知道你点的是哪个

热点排行