getting error when i split the string using substring function in vb.net.it shows the error like Object reference not set to an instance of an object.
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.
Wheres the code with you using the split function?