TableAdapter.Fill() Return Value Meaning

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

Guest

All,

I am using a TableAdapter Fill method to return a row(s0 into a data table:

int return = daMyDataAdapter(myTable, 3);
Where above will fill myTable when it's index = 3;

However I cannot find any documentation on what the return value is for this
method.
I notice when index is not found return = 0 and if it is found return = 1
(one row found.

Does anyone no the meaning of these return values?

Thanks in advance.
 
In this case, you have declared return as an integer, and it is showing just
what it means ... it returned zero records or it found one record.
 
The DataAdapter.Fill method always returns the number of rows added to
the DataSet. MSDN is your friend.
 
Earl,

Thanks for the response. That is just the behavior I was hoping for.

Strange that I could not find what the return value meant for
TableAdapter.Fill() on MSDN.
 
Back
Top