i am having some trouble trying to extract my custID from a SQL database as i keep getting a "use of unassigned local variable " on the custID i have underlined.. can someone help me please!!!
thanks a million!!!
Code:
String[] custID;
while (thisReader.HasRows)
{
while (thisReader.Read())
{
custID[z] = thisReader.GetString(thisReader.GetOrdinal("CustId"));
}
z++;
}
thisReader.Close();
thisConnection.Close();
for (int j = 1; j < [U][B][I]custID[/I][/B][/U].Length - 1; j++)
{
Label1.Text = custID[j];
}
Comment