當我在vb.net.it中使用子字符串函數拆分字符串時出現錯誤,顯示像對象引用未設置爲對象實例的錯誤。將字符串拆分爲兩部分並將其存儲在數組中
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.
對不起使用子字符串函數 – vps