return a dataset and an integer from one function?

king_jeremy

Member
Joined
Oct 20, 2009
Messages
13
Programming Experience
Beginner
I'm trying to write a function that will return a dataset and an integer, is this possible?
 
Last edited:
VB.NET:
Public Function Fill(ByVal dataSet As DataSet) As Integer
This is common in data access, you create a DataSet and supply it to the Fill method that fills it (returned by parameter) and returns an Integer. The Integer could also be a parameter, but have to be ByRef to return by parameter since it is a value type and not a reference.
You can also create a class that have DataSet and Integer properties and return this type.
 
Back
Top