What does your GetAuthors function returns (string, integer, recordset) ?
If it's a value, there's no need for the Set keyword.
>I'm working with my first ASP that calls a COM object and I'm having a little trouble. The COM object (a VFP dll) instantiates ok, the VBScript on the ASP passes a parameter to it ok, and the object responds with the correct output (a string). I get this error:
>
>Microsoft VBScript runtime (0x800A01A8)
>Object required: '[string: "Johnson White"]'
>/QPISWeb/new_plan.asp, line 57
>
>Line 57 is the "set author = ..." below:
>
>SUB GetAuthor
> DIM author
> IF id <> "" Then
> set author = oAuthor.GetAuthors(id)
> END IF
>END SUB
>
>The "Johnson White" in the error message is the correct response for the "id" parameter sent so I know the COM server is functioning.
>
>I'm running IIS 5.x on W2K Advanced Server (SP1) on the server side and IE 5.x on W2K Pro on the client side. Any help would be appreciated.