|
-
Feb 17th, 2000, 06:32 PM
#1
Thread Starter
Addicted Member
Hello,
could anyone tell me what is the most effective ways to pass a recordset to a function.
Normally I wiuld pass it a an adodb.recordset
in the parameter listing, but would like to know if there is a tidier way of doing this?
Thanks
Tony.
-
Feb 17th, 2000, 08:13 PM
#2
Addicted Member
I think the way you use is the best! Passing a variable to a function or procedure by using a parameter is the most structured way there is and every programmer should use it!
-
Feb 18th, 2000, 05:08 AM
#3
Lively Member
Forest, could you elaborate on the proper way to do this, with a small code example?
I'm afraid I stink with Parameters, and never quite got the hang of why/when.
-
Feb 19th, 2000, 12:23 PM
#4
Guru
Code:
Public Sub MySubroutine(objRS as Adodb.Recordset)
Msgbox objRS.fields(0).value
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|