looking for help from experts who use vb dotnet and vbscript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • learner

    #1

    looking for help from experts who use vb dotnet and vbscript

    ( I am not sure if this is the right group but I could find answer in other
    group)

    I have tried to use wscript online help (Script56.CHM), google , search
    msdn, newsgroup for
    without luck. Either I did not have the right criteria or I just have not
    looked at the right places.


    I was given an activex component (COM) built with dot net vb. I could call
    every function with simple data type and get the proper results. but, I just
    don't see any way for calling the one with array parameters or results. I
    did not matter if the data type was string nor integer.

    I tried calling from vbscript with parameters declared as
    - declared array
    ...
    DIM parmArray()
    Dim irc
    irc = myComObject.som efcn(parmArray)
    which gives me something about invalid arguments or call
    If I use this:
    ...
    DIM parm
    Dim irc
    irc = myComObject.som efcn(parm) ' execute OK
    wscript..echo parm(0) ' oops error
    what else can I do?
    BTW: it does not matter if the parameter is just input for the function or
    result from the function, I get trouble. calling although I do not get
    trouble from using the element when the array was input only for the dotnet
    function.



Working...