473,484 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

question about functions and vb

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
Nov 19 '05 #1
5 912
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

--

"Kurt Schroeder" <Ku***********@discussions.microsoft.com> a écrit dans le
message de news:8D**********************************@microsof t.com...
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

Nov 19 '05 #2
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
"Patrice" wrote:
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

--

"Kurt Schroeder" <Ku***********@discussions.microsoft.com> a écrit dans le
message de news:8D**********************************@microsof t.com...
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


Nov 19 '05 #3
ADO.NET provides DataSet, DataTable and DataRow classes. DataSet is a kind
of in memory DB where you can hold several" tables" each hldoing multuiple
"rows".

See :
http://samples.gotdotnet.com/quickst...s.aspx#sqldata

The whole documentatino si around
http://msdn.microsoft.com/library/de...netdataset.asp

Patrice

--

"Kurt Schroeder" <Ku***********@discussions.microsoft.com> a écrit dans le
message de news:0F**********************************@microsof t.com...
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
"Patrice" wrote:
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

--

"Kurt Schroeder" <Ku***********@discussions.microsoft.com> a écrit dans le message de news:8D**********************************@microsof t.com...
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


Nov 19 '05 #4
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

"Patrice" wrote:
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

--

"Kurt Schroeder" <Ku***********@discussions.microsoft.com> a écrit dans le
message de news:8D**********************************@microsof t.com...
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


Nov 19 '05 #5
Siga no mas amego!

"Patrice" wrote:
ADO.NET provides DataSet, DataTable and DataRow classes. DataSet is a kind
of in memory DB where you can hold several" tables" each hldoing multuiple
"rows".

See :
http://samples.gotdotnet.com/quickst...s.aspx#sqldata

The whole documentatino si around
http://msdn.microsoft.com/library/de...netdataset.asp

Patrice

--

"Kurt Schroeder" <Ku***********@discussions.microsoft.com> a écrit dans le
message de news:0F**********************************@microsof t.com...
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
"Patrice" wrote:
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

--

"Kurt Schroeder" <Ku***********@discussions.microsoft.com> a écrit dans le message de news:8D**********************************@microsof t.com...
> 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


Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

51
4212
by: Casper Bang | last post by:
My question is fundamental I beleive but it has been teasing me for a while: I have two classes in my app. The first class is instantiated as a member of my second class. Within this first class,...
3
1645
by: Bryan Parkoff | last post by:
Do C/C++ Compiler allow function to contain more than 8 parameters? I checked MS Visual C++ 6.0 that it can only limit 8 parameters, but most C/C++ Compiler can limit maximum 256 parameters. Can...
55
2718
by: ben | last post by:
is it true that a function without an inline keyword never get inlined? If not true when is it inlined or not? ben
11
4222
by: Mark Yudkin | last post by:
The documentation is unclear (at least to me) on the permissibility of accessing DB2 (8.1.5) concurrently on and from Windows 2000 / XP / 2003, with separate transactions scope, from separate...
3
1182
by: Roman Mashak | last post by:
Hello, All! As far as I understand, function declaration with 'static' keyword limits the access to these functions within the file where it declared. So, my question is: where can it be used in...
3
2008
by: Mark Fox | last post by:
Hello, I am porting some old ASP 3.0 VBScript code to C#.NET and am not sure what the equivalent C# functions are for a couple VBScript functions. So my first question is: 1) Is there...
6
2103
by: rodchar | last post by:
Hey all, I'm trying to understand Master/Detail concepts in VB.NET. If I do a data adapter fill for both customer and orders from Northwind where should that dataset live? What client is...
5
2338
by: Urs Beeli | last post by:
I have a question regarding errno. If I understand it correctly, including <errno.h> allows me to check "errno" for error values that some standard library functions may set. This brings up some...
7
1841
by: Csaba Gabor | last post by:
I feel like it's the twilight zone here as several seemingly trivial questions are bugging me. The first of the following three lines is a syntax error, while the last one is the only one that...
12
2994
by: Bryan Parkoff | last post by:
I write my large project in C++ source code. My C++ source code contains approximate four thousand small functions. Most of them are inline. I define variables and functions in the global scope....
0
7082
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6953
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7105
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7144
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5407
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4529
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3046
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3041
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
592
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.