0 Members and 1 Guest are viewing this topic.
You don't initialize the len symbol.double len;Change that to double len= 0;
Hi,I can not run the program because I receive a message (There were build errors . Would you like to .... etc Yes / No)How to test the program in this case ?
To do what I suggested, you do not need to run the program. Most "edition time" errors are shown by Visual Studio underlining the error with a wavy red line.
Go into debug mode, put a breakpoint at the line = statement, check your variable values as you iterate the psr .. that may help.
BTW . A cheaper process is to declare the line variable outside the loop and just assign a value as you iterate rather than declare and assign at each step
... and more importantly ... why are you forcing the getObject to a Line ... doesn't your selection process ensure that it is a line ??
added: and why are you setting OpenMode to ForWrite ??
It is outside the loop process , is not it ?