Hi all,

Code:
private void filterStringFromArray()
		{
			ArrayList temp = ((ArrayList)ViewState["FilterExpression"]);

			string sPriority;
			
			sPriority = ((ArrayList)temp[0])[0].ToString();
}
I have the above code and for some reason when i try to assign the value to the string sPriority the watch window shows the error message:

Identifier 'sPriority' Out of scope.

As far as i was aware there is nothing wrong with the code.

Does anyone have any ideas on whats happening here?

Many thanks in advance

Grant