can these be combined

  • Thread starter Thread starter rodchar
  • Start date Start date
R

rodchar

hey all,

just wondering if i can combined the 2 statements:

object[] findTheseVals = {val1, val2};
row = dt.Rows.Find(findTheseVals);

thanks,
rodchar
 
hey all,

just wondering if i can combined the 2 statements:

object[] findTheseVals = {val1, val2};
row = dt.Rows.Find(findTheseVals);

thanks,
rodchar

You could try this:

row = dt.Rows.Find(new object[] {val1, val2});

Chris
 
hey all,

just wondering if i can combined the 2 statements:

object[] findTheseVals = {val1, val2};
row = dt.Rows.Find(findTheseVals);

thanks,
rodchar

Hi,

Try:
ow = dt.Rows.Find( new object[] {val1, val2} );
 

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

Back
Top