question about functions and vb

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

Guest

OK, this maynot be a simple question. Can a function (using vb for asp.net)
return a record? if so how is the record passed back?

thanks
kes
 
What is a "record" ? If you meant a "record" à la Pascal it is called a
"structure" in VB.NET...

It should work. Just show us what you tried and tell us what you see when
you run your code....

Patrice
 
Sorry, I do a SQL all the time and i only think of a record as a row returned
from a query or as part of a row.
My question is how can a function return a set of data. In pascal it would
be called a structure. It's been 17 years since i did pascal. By your reply
this is what would need to be returned. Here it is called a "CLASS"?
ISSUE:
1. where should it be defined: in the class with the function, or in a new
class and have the function create an instance of?
thanks
kes
 
ok, thanks.
You gave me the hint i needed. I created a new class, created an instance
inthe function, called the function from the click event and got the values.
thnaks!
kes
 
Back
Top