以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 重复节点的判断 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=68703) |
-- 作者:blsu33 -- 发布时间:2015/5/22 17:30:00 -- 重复节点的判断 老师, 重复的节点怎么判定,节点尚未对应表,只是在目录树中; Dim tr As WinForm.TreeView = e.Form.Controls("TreeView1") Dim i As Integer = 0 For Each nd As WinForm.TreeNode In tr.AllNodes nd. ‘这块怎么写呢? Next |
-- 作者:Bin -- 发布时间:2015/5/22 17:32:00 -- 参考帮助 http://www.foxtable.com/help/topics/2220.htm |
-- 作者:大红袍 -- 发布时间:2015/5/22 17:37:00 -- Dim tr As WinForm.TreeView = e.Form.Controls("TreeView1") Dim ls As New List(Of String) For Each nd As WinForm.TreeNode In tr.AllNodes If ls.Contains(nd.Text) = False Then ls.Add(nd.Text) msgbox("重复" & nd.Text) End If Next |
-- 作者:blsu33 -- 发布时间:2015/5/22 20:29:00 -- 谢谢 |