View Single Post
 
Old 05-12-2015, 09:15 AM
Gruff's Avatar
Gruff Gruff is offline
Bald Mountain Survivor

Retired Moderator
* Expert *
 
Join Date: Aug 2003
Location: Oregon, USA - deceased
Posts: 6,440
Default

The arguments for the substring() method as you are using it are:

Substring(<Start Position>,<Length of Substring>)

Your calculated Length parameter is a negative number at some point.

Put a break point at the offending offending line, run the program and use debug to see if this is true.

Most probably your logic does not work for all cases of data from the file.
adjust your code or program design to not allow that to happen.
__________________
Burn the land and boil the sea
You can't take the sky from me


~T
Reply With Quote