以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]未设置对象变量或块变量  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=72079)

--  作者:Phoebe_fdk
--  发布时间:2015/7/23 8:25:00
--  [求助]未设置对象变量或块变量
dim lst as winform.listbox=e.form.controls("l") if lst.selectedindex>=0 lst.items.removeat(lst.selectedindex) end if 提示运行错误 未设置对象变量或with块变量
--  作者:大红袍
--  发布时间:2015/7/23 9:24:00
--  

 代码不可能报错

 

Dim lst As winform.listbox=e.form.controls("l")
If lst.selectedindex>=0
    lst.items.removeat(lst.selectedindex)
End If