TableAdapter.Fill() Return Value Meaning

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.
 
E

Earl

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.
 
Z

zackary.evans

The DataAdapter.Fill method always returns the number of rows added to
the DataSet. MSDN is your friend.
 
G

Guest

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.
 

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