当我使用 vb.net 中的子字符串函数拆分字符串时出现错误。它显示错误,例如对象引用未设置为对象的实例。
code
phone = t1("fld_phone").ToString
if phone <> String.Empty Then
msg = t1("fld_msg")
msg1 = msg.Length
Dim Counter As Integer = 0
For i = 0 To msg.Length - 1 Step 150
strarr(Counter) = msg.Substring(i, 150)
Counter += 1
Next
the len of the msg variable is 312 char.