if you ask me it's a descent error message
first of all i should use:  Public Function GetDownLine(Optional ByVal
strPIN as string="") as string

but the reason the COM shows the error is probably because of the
    Conn.close
    Set Conn = Nothing
section. The error Object Required references to the Conn object with isn't
initialised
(set conn = creatobject("adodb.something")). You can't close anything that
isn't open, and you can't declare an object to nothing when there is no
object.

Hope this helps

Regards

Remie Bolte


----- Original Message -----
From: "Steve Abaffy" <[EMAIL PROTECTED]>
To: "ActiveServerPages" <[EMAIL PROTECTED]>
Sent: Wednesday, September 18, 2002 5:28 PM
Subject: OT: Com Object


> Hello
>
> I have the following COM object saved as a DLL. It has been registered and
> everything seems to be working.
> However I get a
> CdiNetProject error '800a01a8'
> Object required
> Error at the line indictate below in the asp code when I try to access it.
>
> Any insight??? As you may well have guessed this is my first COM Object
and
> I am having trouble.
>
>
>
>
> '************** COM Object Code ************************
> Public Function GetDownLine(Optional strPIN = "")
>     If strPIN = "" Then
>         GetDownLine = ""
>     Else
>         GetDownLine = "We are here"
>     End If
>     Conn.Close
>     Set Conn = Nothing
> End Function
> '********************************************************
> '************* ASP CODE ********************************
>
> set objHello = Server.createobject("CDINETProject.Cdinet")
> Mem = "11101"
> '******** Line that errors out ****************
> Response.write objHello.GetDownLine(mem) & "<br>" & vbCRLF
> '*********************************************************
>
>
>
> ---
> You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
%%email.unsub%%
>



---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to