| Author: Praveen 03 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
hi,
break statement will come out from the loop
what error you are getting?
|
| Author: lakshya 03 Nov 2009 | Member Level: Gold | Rating:  Points: 2 |
pls use breakpoints to check if it does go in if condition
Happy dotneting Spread Smiles :-) Visit Lakshya
|
| Author: venkatesan 03 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
use exit sub
Regards, M.Venkatesan. Dot Net Code Snippets
|
| Author: greeny_1984 03 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
Hi,
You can try like this
for (int intLoopCounts = 0; intLoopCounts < strDtCount; intLoopCounts++) { if (Convert.ToInt32(dtNew.Rows[intLoopCounts]["netto"].ToString())*-1 > 0) { Flag = true; return ; } }
Regards, Greeny_1984
Rate this Response[Excellent/Good/Poor] FRESHERS check this link Need help from me join here
|