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

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
 
A

Arne Vajhøj

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top