Returning
an array works fine. Returning an XSI collection works fine. It?s when I?m
trying to return both within the same function that I can?t figure
out.
Mathieu Leclaire
R&D Programmer
Hybride Technologies
"Yesterday is history, tomorrow is a
mystery, today is a gift and that is why it's called the
present"
-----Original
Message-----
From: javier
[mailto:javier.vdp(at)gmail.com]
Sent: Saturday, March 22, 2008 3:16
PM
To:
XSI(at)Softimage.COM
Subject: Re:
passing data from VBScript to JScript
vb arrays shold usable in js...
when
you read them in, you need to do a jsarray = vbarray.toArray()
i havent used
vb code in a while but this should work just fine
On Fri, Mar 21,
2008 at 9:03 AM, Mathieu Leclaire <mleclair(at)hybride.com>
wrote:
I'm trying to modify an old VBScript custom
command to make it return more data so I can use it in my Jscript. Originally,
the VBScript command returned an object collection but I now want it to also
pass a couple of integer arrays and I'm not sure how to do that. Can anyone show
me an example of how to return an XSI collection and an Array in VB and how to
retrieve each one in Jscript?
Thanks.
Mathieu Leclaire
R&D Programmer
Hybride Technologies
"Yesterday is history, tomorrow is a
mystery, today is a gift and that is why it's called the
present"