Problem passing arrays

Results 1 to 2 of 2

Thread: Problem passing arrays

  1. #1
    Krioyo Guest

    Default Problem passing arrays

    I can´t pass an array from an ASP Page to a procedure of an ActiveX component (DLL).<BR><BR>If I pass it like this:<BR>myObj.myProc myArr()<BR><BR>It produces: <BR>Microsoft VBScript runtime error &#039 800a0009&#039 <BR>Subscript out of range <BR><BR>And if I pass like this:<BR>myObj.myProc myArr<BR><BR>It Produces:<BR>Microsoft VBScript runtime error &#039 800a000d&#039 <BR>Type mismatch: &#039myObj.myProc&#039<BR><BR>I have declared the procedure in Visual Basic this way:<BR>Public Sub myProc(ByRef myArr() As String)<BR>...<BR>End Sub<BR><BR>Anybody can help me??

  2. #2
    Join Date
    Dec 1969

    Default RE: Problem passing arrays

    The VBS Array is a variant.<BR>myProc should recieve a variant.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts