Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

returnin arrays from COM to JScript

2 views
Skip to first unread message

CPL

unread,
Sep 24, 2007, 3:50:13 AM9/24/07
to
On Apr 28 2001, 6:06 am, "Michael Harris" <mik...@mvps.org> wrote:
> "...So there is no way to transparentlyreturnanarrayinJScript?..."
>
> To be "JScript-friendly", you have toreturn*everything" via a functionreturnvalue. And as I
> said before,JScriptcan handle a SAFEARRAY by converting it with VBArray() since aJScriptarray
> isn't really anarraybut rather a special (IDispatch[Ex] based)JScriptobject with numeric
> properties.

JScript takes array[0] as array.0

Méta-MCI (MVP)

unread,
Sep 25, 2007, 3:37:25 AM9/25/07
to
Hi!

Use .toArray() for give the information à JScript.

@-salutations

Michel Claveau

0 new messages