Have you tried using the ARRAY itself. Maybe it is compatible with
Javascript and only needs VBArray in VBS? I don't have much experience
with VBS but I think I've seen VBArray some time ago in a sample
script and was able to just use the array in Javascript.
Since WMI isn't VB-specific you should definitely be able to access
the data using Javascript. Maybe you can use a debugger to see what
structure is returned and convert it yourself if needed.
To launch the debugger e.g. Visual Studio Debugger for your gadget you
need to add the debugger statement to your code just before you get
the data:
// Some code to set up WMI
debugger;
// Code you want to examine.
Best regards,
Benjamin
On Jan 31, 10:17 pm, Marcel Schnirring
<[email protected]> wrote:
> I need it for a wmi-Service.
> I want to use a function there. And as parameter I need a VBArray.
>
> If I get the information, everything is good, because of
> VBArray(ARRAY).toArray();
> But there is no solution for the other way round...
>
> So I think, the only possibility is, to write the hole gadget in VB. Or I
> don't add this option...
> Am I right?
>
> 2009/1/30 Benjamin [API Guru] <[email protected]>
>
>
>
> > No, it is not possible.
> > Why would you need VBArray?
>
> > Best regards,
> > Benjamin
>
> > On Jan 30, 9:34 pm, darky <[email protected]> wrote:
> > > Hello,
> > > up to now, I wrote all my gadgets in JS.
> > > But I need a VBArray. It's possible to convert a VBArray to a JS-
> > > Array, but not the other way round.
> > > So I thought, I easily make a VBS-File with the function.
> > > But it didn't work.
>
> > > I tried it out, but there were always many errors. So my question: is
> > > it possible, to combine these two langugages?
> > > When yes, how?
>
> > > Thank you.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Desktop Developer Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---