How to I write this statement so I can search for any text

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hello!

Here I search for the string No action but how to a write it if I want to
search for any text
I have tried to use string.format but didn' find any that was working
string s = ds.Tables[0].Select("Status Like 'No
action'")[0]["SId"].ToString();

//Tony
 
Here I search for the string No action but how to a write it if I want
to search for any text
I have tried to use string.format but didn' find any that was working
string s = ds.Tables[0].Select("Status Like 'No
action'")[0]["SId"].ToString();

string s = ds.Tables[0].Select(String.Format("Status Like '{0}'", "No
action"))[0]["SId"].ToString();

??

Arne
 
Back
Top