|
|
|
|
|
| | |
|
Active Server Pages asp source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
A function that returns a recordset |
From: |
Jeff Glover |
Date: |
5/23/2000 11:15:59 AM |
IP: |
216.79.93.37 |
I need a function that will return a recordset. I first tried FunctonName = recordset but that
didnt work because recordset is an object and I must do set FunctonName = recordset. When
calling the function I also had to use set set returnval=FunctionName(paramter).
The problem would be when closing the the connection. If I closed the recordset and
DBconnection in the function the recordset could not be accessed outside of the function. If I
closed it outside the function when Im done I would also have to close the DBconnection but
I that means I will have to pass the DBconnection along with the recordset. I dont know how
to pass 2 variables, plus I would just rather the connections close in the function and not have
to worry about it outside the function. |
Follow Up - Re: A function that returns a recordset - Wouter 5/23/2000 12:37:31 PM
|
|
|
|
|
|
|
|
|
|
|
|