以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 多选为空的时候老出错误,怎么避免? (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=138087) |
-- 作者:白国栋 -- 发布时间:2019/7/22 19:20:00 -- 多选为空的时候老出错误,怎么避免? Dim s As String Dim trv As WinForm.TreeView = e.Form.Controls("TreeView1") For Each nd As WinForm.TreeNode In trv.AllNodes If nd.Checked Then s = s & "," & nd.Text End If Next e.Form.DropDownBox.Value = s.trim(",")
|
-- 作者:有点蓝 -- 发布时间:2019/7/22 20:39:00 -- Dim s As String = "" |
-- 作者:白国栋 -- 发布时间:2019/7/22 22:08:00 -- 谢谢!!!我是老新手。 ![]() [此贴子已经被作者于2019/7/22 22:07:49编辑过]
|