D
D. Shane Fowlkes
This may be a very basic question but it's something I've never done before.
I've looked at a couple of my favorite sites and books and can't find an
answer either. I can write a Function to return a single value. No big
deal. But I want to call a Function from another Sub and the function finds
and returns an entire db record. Using ASP.NET (VB!), how can this be done
and how can I differentiate between the fields/columns?
For example:
My Sub()
Dim X As what? String? DataReader?
...do stuff....
X = MyFunction()
...do more stuff using the valueS stored in X
End Sub
My Function() As What? String? DataReader?
....go find record in db and return all fields
End Function
Thanks
-S
I've looked at a couple of my favorite sites and books and can't find an
answer either. I can write a Function to return a single value. No big
deal. But I want to call a Function from another Sub and the function finds
and returns an entire db record. Using ASP.NET (VB!), how can this be done
and how can I differentiate between the fields/columns?
For example:
My Sub()
Dim X As what? String? DataReader?
...do stuff....
X = MyFunction()
...do more stuff using the valueS stored in X
End Sub
My Function() As What? String? DataReader?
....go find record in db and return all fields
End Function
Thanks
-S