EEguruWSU Posted October 8, 2003 Posted October 8, 2003 (edited) when I run this code: Dim sr As StreamReader = New StreamReader(mainprogram) Dim line As String Do line = sr.ReadLine() If Regex.IsMatch(line, "\s*CALL") Then End If Loop Until line Is Nothing I get the following error: An unhandled exception of type 'System.ArgumentNullException' occurred in system.dll the error comes from line If reges.isMatch(line,"\s*CALL")then Additional information: Value cannot be null. if you have any suggestion please let me know Edited February 21, 2007 by PlausiblyDamp Quote
Moderators Robby Posted October 8, 2003 Moderators Posted October 8, 2003 instead of 'Loop Until line Is Nothing" Change to "DO" part to something like "Do While sr.ReadLine" Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.