Passing arrays from ASP To VB-components...need help 
Author Message
 Passing arrays from ASP To VB-components...need help

Hi i am trying to pass an array from an asp-page to a function in my
ActiveX-dll built in VB

Is it possible to pass an array from ASP to a VB-function?

Christoffer



Thu, 22 May 2003 03:00:00 GMT  
 Passing arrays from ASP To VB-components...need help
I use this functionality to pass an array to my multistring registry writer
activex component.

Dim myArray(3), Arraypass

myarray(0) = "test"
myarray(1) = "test"
myarray(2) = "test"

arraypass = myarray

Set oReg = CreateObeject("yourcompnentname")

oreg.writemultistring("hklm", "software\key", arraypass)

Your com component must be set to accept a variant for the arraypass.

There are probably better ways of doing it but I asked the same question and
never got a responce

Hope it helps

Paul Halse


Quote:
> Hi i am trying to pass an array from an asp-page to a function in my
> ActiveX-dll built in VB

> Is it possible to pass an array from ASP to a VB-function?

> Christoffer



Thu, 22 May 2003 03:00:00 GMT  
 Passing arrays from ASP To VB-components...need help
Should have also said to take a look at this article
http://support.microsoft.com/view/dev.asp?kb=244012


Quote:
> I use this functionality to pass an array to my multistring registry
writer
> activex component.

> Dim myArray(3), Arraypass

> myarray(0) = "test"
> myarray(1) = "test"
> myarray(2) = "test"

> arraypass = myarray

> Set oReg = CreateObeject("yourcompnentname")

> oreg.writemultistring("hklm", "software\key", arraypass)

> Your com component must be set to accept a variant for the arraypass.

> There are probably better ways of doing it but I asked the same question
and
> never got a responce

> Hope it helps

> Paul Halse



> > Hi i am trying to pass an array from an asp-page to a function in my
> > ActiveX-dll built in VB

> > Is it possible to pass an array from ASP to a VB-function?

> > Christoffer



Thu, 22 May 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Passing an array from ASP to VB 6 ActiveX component

2. Passing an array from ASP to VB 6 ActiveX component

3. Passing Variant Array from ASP to COM Component

4. Passing Variant Array from ASP to COM Component

5. Fabricated Recordset in ASP won′t pass to VB component

6. Passing Arrays between ASP/VBScript and ActiveX Components...

7. Fabricated Recordset in ASP won′t pass to VB component

8. Passing Variables from ASP to VB Component

9. Passing Arrays between ASP/VBScript and ActiveX Components...

10. Returning arrays from VB/VC components or VBScript to JavaScript in ASP

11. Problem using an Array in ASP as argument to a VB component

12. Problem passing VB COM+ ASP Request object to .NET component System.Web.HTTPRequest through COM interop

 

 
Powered by phpBB® Forum Software