RE: passing data from VBScript to JScript

Date : Tue, 25 Mar 2008 10:47:25 -0400
To : <XSI(at)Softimage.COM>
From : Marc-André Belzile <mbelzile(at)Softimage.COM>
Subject : RE: passing data from VBScript to JScript
FYI, I haven't seen your command syntax yet, but unlike vbscript you can't return multiple values through arguments with jscript. You should return only one array which would contain all your data .
 
-mab


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Mathieu Leclaire
Sent: March 25, 2008 9:59 AM
To: XSI(at)Softimage.COM
Subject: RE: passing data from VBScript to JScript

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"

 

 


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.