row count in datarow[] array

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I determine the row count of my datarow array? In my code, I have

DataRow[] drSalLast =
Salaries.DS_Salaries.Tables["Salaries"].Select("Emplcode = '" + sEmplcode +
"' and code = '3'");

and since this query returns more than one row, I'd like to diaplay the
Salaries.Hourly of every record.



Thanks.
 
If you are looking to find out how many rows are in the array, do the
following:

drSalLast.Length


Simon
 

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