Hi,
I had some old projects which works previously.. but now encountered the below error, after I compiled it with Optimised compilation:
An error occured on sub_main_numonly.
NullReferenceException
Continue?
Sub NumOnly(x)
t = ""
For i = 1 To StrLength(x)
y = StringMid(x,i,1)
If (Asc(y)>47) AND (Asc(y)<58) Then t = t & y
Next
Return t
End Sub
what could be the problem?
Thanks
WZSun
I had some old projects which works previously.. but now encountered the below error, after I compiled it with Optimised compilation:
An error occured on sub_main_numonly.
NullReferenceException
Continue?
Sub NumOnly(x)
t = ""
For i = 1 To StrLength(x)
y = StringMid(x,i,1)
If (Asc(y)>47) AND (Asc(y)<58) Then t = t & y
Next
Return t
End Sub
what could be the problem?
Thanks
WZSun