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} );
 
Back
Top