[RESOLVED] Help with String.Replace
hi guys! Is the code below is the right implementation of String.Replace?
Code:
SearchString = TxtSettingsUserSearch.Text;
SearchString.Replace("*", "%");
MessageBox.Show("SearchString: " + SearchString);
If not, can you please help on how to replace * to %. Thanks in advance!
Re: Help with String.Replace
oh! Sorry guys...My mistake... I should assign
Code:
SearchString.Replace("*", "%");
to SearchString variable for me to see the result of replace when i call the
Code:
MessageBox.Show("SearchString: " + SearchString);