views:

18

answers:

0

As i mentioned in the title, i have a function that retrieves some string parameters. In the function i need a convertion a string to an object like ADODB.Recordset.
I am using VBScript in ASP.
Thank you

My code looks like:

Function calc(someString,anotherString)
 Set someString =  Server.CreateObject("ADODB.recordset") 
 'Opening db connections etc. done here
 'using someStrings string value as a RecordSet object here...
End function

Forexample:

calc("myLovelyRS","anotherBoringString")
response.write myLovelyRS("clientName")
' get the client names