VB.Net - DataRow Declartion Assistance
Posted on 2012-12-31
Good Day Experts!
I am looking for assistance with my DataRow declaration. Right now I have it declared in my For Next Loop:
For Each sqlRSGetProcessing As DataRow In sqlRStbl.Rows
This works great with no issues. After the Next, I am trying to reference the DataRow in a line of code for a messageBox in event there is an error. However, it tells me the DataRow is not declared.
So, up above the For statement I declare it. That makes the issue about it not being delcared go away in my code for the messageBox. But the "For Each sqlRSGetProcessing As DataRow In sqlRStbl.Rows" line barks at me saying the DataRow is alread delcared.
How can I make the DataRow in the For statement visible to the code below it?