S
Soulless
Hi,
I am tryng to use replace and it is not working. i'm surprised as it
would seem to be a simple method. My code:
foreach (DataRow row in dsSched.Tables["Schedule"].Rows)
{
if (_bStopWork) break;
lsTemp = String.Empty;
lsTemp = row["UpdateSQL"].ToString() +
System.Environment.NewLine;
lsTemp.Replace("S","?");
sb.Append(lsTemp);
}
I am retrieving rows from a dataset to string and the replace is not
replacing the 'S''s like a assume they should.
Any ideas? Thanks!
I am tryng to use replace and it is not working. i'm surprised as it
would seem to be a simple method. My code:
foreach (DataRow row in dsSched.Tables["Schedule"].Rows)
{
if (_bStopWork) break;
lsTemp = String.Empty;
lsTemp = row["UpdateSQL"].ToString() +
System.Environment.NewLine;
lsTemp.Replace("S","?");
sb.Append(lsTemp);
}
I am retrieving rows from a dataset to string and the replace is not
replacing the 'S''s like a assume they should.
Any ideas? Thanks!