F
frazer
hi i am trying to use string arrays to store values from the db
string users="";
while (sqlDataReader.Read())
{
users = users+ sqlDataReader.GetString(1) + ",";
}
string [] users1 = users.Split(',');
rather than first use a string to store the roles and then put them in a
string array
is there a way to straight away put them in an array.thnx
string users="";
while (sqlDataReader.Read())
{
users = users+ sqlDataReader.GetString(1) + ",";
}
string [] users1 = users.Split(',');
rather than first use a string to store the roles and then put them in a
string array
is there a way to straight away put them in an array.thnx