以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  CheckedComboBox  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=46094)

--  作者:cuicuibing
--  发布时间:2014/2/17 10:22:00
--  CheckedComboBox
获取CheckedComboBox的值应该如何写,下边这样不行,请教。
Dim nms() As String = e.Form.Controls("CheckedComboBox1").WriteValue
--  作者:Bin
--  发布时间:2014/2/17 10:23:00
--  
dim s as string = e.Form.Controls("CheckedComboBox1").Value

dim s as string = e.Form.Controls("CheckedComboBox1").Text

希望获得数组,在按 , 号分割即可

--  作者:cuicuibing
--  发布时间:2014/2/17 10:51:00
--  
拆分的记得有,没找到。请教版主,如何写下边的代码
我的意思,获取CheckedComboBox得值,然后遍历这个数组。
Dim nms() As String = e.Form.Controls("CheckedComboBox1").WriteValue
For Each nm As String In nms
   *****
next



--  作者:cuicuibing
--  发布时间:2014/2/17 10:57:00
--  
这样说更好点,我想获取 CheckedComboBox的值。

然后遍历这个值。



--  作者:Bin
--  发布时间:2014/2/17 11:01:00
--  
请你认真查看我2楼的说明,不要一扫而过.注意  希望获得数组,在按 , 号分割即可


Dim nms() As String = e.Form.Controls("CheckedComboBox1").Text.split(",")
For Each nm As String In nms
   *****
next