Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem returning Resultset from PB COM to ASP

Status
Not open for further replies.

zto

Programmer
Sep 19, 2001
4
SE
I have a COM Object created in PowerBuilder which queries a database and returns an ADO resultset. I also have an ASP page calling this object.
I know i get a connection with the object and the function works fine but when i want to populate the recordset i get the following message:

"An exeption of type '?k?' was not handled"

Can anyone give me a hint of what i am doing wrong?

Thanks

//ZTO

I have used the following code to create the object and handle the returned result.

Dim clss_com
dim cls_recset
dim conn

' Creating a recordset to handle the returned data

Set conn = Server.CreateObject("ADODB.Connection")
Set cls_recset = Server.CreateObject_("ADODB.RecordSet")

'Creating the com object

strClassString ="PB80.n_clssrch.1.0"
Set clss_com = Server.CreateObject(strClassString)

'sending value to test1 and handeling result. This is where
'i have problems

cls_recset = clss_com.of_test1(4)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top