Home | Advertising Info178 USERS CURRENTLY ONLINE   
   Site Search Contact Us Sunday, April 22, 2018  

User Management Application with web based screens that allow you to manage users.
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.


We didn't realize
the site was so popular.

Other Stuff

Active Server Pages asp search engine active server page asp application components tutorial CJWSoft ASPProtect ASPBanner ASPClassifieds

(Advanced)  (Components)  (Database)  (General)  (Vbscript)


Subject: Re: Problem with passing a recordset to a procedure
From: Harlan
Date: 3/16/1999 8:58:13 AM


well, I don't know the answer to your question. But then again most the time I don't ;) Athough, I have a solution, maybe. Try creating both your recordset and connection object as public variables. Because this is vbscript you don't use "public" to make variables public, you simply dimension them out side of any subs. Examples:

set connMyConn = server.... 'this is a public variable now.

Sub mySub()
set connMyConn2 = server... 'this is a private variable to this sub function.
end sub

so what does this mean?
if you set your connection object above any sub functions, your sub functions will have access to it, so you won't need to pass it to them.
so mySub() can use connMyConn because its declared above any subs. Actually outside of any subs is better wording. However, on the topic of error handling, checking. Putting it as clearly as I can, vbscript SUCKS at error handling/trapping/debugging. If my project is going to be more then 1000 lines of code, I always move it to an activex dll, your coding is the same for the most part, and its a lot nicer to work with.

I know I didn't answer your question, but I hope I helped some anyway. You might want to pete if he's still around, I think he's done more with the type of code your using (I never .open a recordset).

Previous Message

Follow Up - Re: Problem with passing a recordset to a procedure - Tony 3/16/1999 10:38:26 AM


   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2018 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages ASP control controls class classes module script Scripts applet CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com