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

Passing an Array from ASP to VB Component

Status
Not open for further replies.

jjogie

Programmer
Oct 23, 2000
3
CA
I am trying to pass an array of strings from my ASP page to my VB component. I get a Type mismatch error. The syntax seems to be right. Is this a bug or am I doing something wrong with my syntax.

I am trying to pass my array by reference. [sig][/sig]
 
Just a shot in the dark here... Variables in ASP or VBScript are of type Varient so you would need to declare it as such in the VB componet to pass it over correctly.

In your ASP code you probably have the variable set up like this.
Dim Variablename

Declare it exactly the same in your VB componet and it should be fine.

Hope that helps.

Steve


Stephen Boston
stephenb@nbarizona.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top