I guess I spoke too soon. VS will let you place a break point on a semi-colon, but when you run in debug mode, it ignores it, skips it, and removes the breakpoint.
I guess I need to revert this issue to open.
Any ideas.
>Christof,
>
>Vielen dank for the tip. Using your suggestion, I won't have to explain to fellow coders why I have a pointless
continue
in a lot of my for-loops.
>
>I think that I found a do-nothing statement that I can hang a breakpoint on that won't make my code confusing to others or waste any resources.
>
>C# won't allow me to use null or void, but it looks like it will just allow an empty line, i.e., just a semi-colon on a line by itself. I only thought to try this because of your suggestion of breaking up my for-loop onto multiple lines. Du hast mir doch gehilft. (This email does not obligate you to provide me with online Deutch lessons.)
>
>Thanks,
>
>>Hi David,
>>
>>
>>for (int yearIndex = 0; yearIndex < totalYears; yearIndex++)
>>
>>You need to write the line like this:
>>
>>for (int yearIndex = 0; yearIndex < totalYears;
>> yearIndex++)
>>
>>Then you can break on yearIndex++ which is the the statement that is executed right after the last line inside the for loop.
David S. Alexander
Kettley Publishing
20271 SW Birch Street, 2nd Floor
Newport Beach, CA 92660-1752