nickmollberg
Programmer
This loop:
Gives me this error:
An unhandled exception of type 'System.IndexOutOfRangeException' occurred in whileStatement.exe
Additional information: Index was outside the bounds of the array.
It is looking througha textbox, parsing the contents out one line at a time... it seems to crash wehn it gets to the end of the textbox.
How can I stop it before this happens?
Code:
for(int counter=0; counter <= tempArray.Length;counter++)
{
try
{
fdp.Parse( tempArray[counter], FormTypeSys, SectionSys, ScreenSys, QSys );
}
catch( SqlException sqx )
{
throw new FormDesignParserException( "Error executing SQL: " + sqx.Message + " :: " + sqx.StackTrace );
}
}
Gives me this error:
An unhandled exception of type 'System.IndexOutOfRangeException' occurred in whileStatement.exe
Additional information: Index was outside the bounds of the array.
It is looking througha textbox, parsing the contents out one line at a time... it seems to crash wehn it gets to the end of the textbox.
How can I stop it before this happens?