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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing Index Server from a COM object

Status
Not open for further replies.

kevink

Programmer
Nov 23, 1999
53
0
0
IE
I'm trying to write a COM object that will return the results from an index server search. The search works fine from ASP, but when I put it into the COM object, I get a "Type Mismatch" error.
Code:
-------------- 
Public Function myData (ByRef varData As Variant) As Variant 

    Redim varData(i, k) 'redim to variables set elsewhere 
    .... carry out search and read in values to array 
End Function 
-------------- 

And from the ASP page 

-------------- 
Dim varData 

    mData(varData) 'This is where the type mismatch occurs!
---------------
Any help will be appreciated! Thanks, Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top