以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- [求助]我一直是这样的写法,怎么突然就出错了? (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=165227) |
-- 作者:zto001 -- 发布时间:2021/5/11 8:56:00 -- [求助]我一直是这样的写法,怎么突然就出错了? Dim Value As String = Forms("批量条码").Controls("TextBox1").value Dim sps() As Char = { Chr(13) , Chr(10) , vbcrlf } Dim Names() As String = Value.Split(sps) \'出错 For Each name As String In Names ..... System.NullReferenceException:未将对象引用设置到对象的实例。在UserCode.Test( |
-- 作者:有点蓝 -- 发布时间:2021/5/11 9:22:00 -- Dim Value As String = Forms("批量条码").Controls("TextBox1").text |