Not sure what you mean by "functionalize" or "multiple presentations of the
same record set" (why would you want to do that??)
Maybe if you show some code, we can get a better idea of what you are trying
to do.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Thanks for the reply. The following is what I have now.
Function DisplayEvents(strEventType)
Set cmdStoredProcEvent = Server.CreateObject("ADODB.Command")
set rs_event = server.createobject("ADODB.recordset")
With cmdStoredProcEvent
..ActiveConnection = conn
..CommandText = "get_event_list_sp"
..CommandType = adCmdStoredProc
..Parameters.Append .CreateParameter("@retval", adInteger,
adParamOutput)
'add input parameters
..Parameters.Append .CreateParameter("@prod_fam", adVarChar,
adParamInput,150,strProductFamily)
..Parameters.Append .CreateParameter("@event_type", adVarChar,
adParamInput,15,strEventType)
..Execute, , adExecuteNoRecords
retval = .Parameters("@retval")
End With
IF strEventType = "webcast" THEN
response.Write("<h5> Webcasts</h5>")
rs_event.Open cmdStoredProcEvent
....displays values from the recordset
End Function
I would like to remove the display of the recordset from the function
to enable me to have different presentations of the information. I
would like to see if I could just call DisplayEvents(strEventType) and
get the object rs_event and control the display of the information at
the page level rather than at the function level. Thanks for any help.
Regards,
Seth
Why not pass the recordset to functions that only do one thing (cohesion),
and have each function have different output?
Bob Lehmann