Looks really bad. But if you manage to convert a VBArray this could be
very helpful to a lot of gadget developers.

If you add a debugger; line and then run your gadget you should see a
Just-In-Time-Debugger dialog (if you have a debugger installed - in my
case Visual Studio 2008). Maybe you could install Visual Studio
Express to get a debugger.

Good luck,
Benjamin

On Feb 1, 11:35 am, Marcel Schnirring
<[email protected]> wrote:
> No, there is no solution (I could find. I also looked on many forums for js
> and vbs in the internet. and every working solution e.g. in a html file used
> both script languages).
>
> Here you can see, every possibility to do with 
> VBArrays:http://www.java2s.com/Tutorial/JavaScript/0600__MS-JScript/0580__VBAr...
>
> Here you can see a statement, how different the arrays 
> are...http://blogs.msdn.com/ericlippert/archive/2003/09/22/53061.aspx
>
> I couldn't see any way to edit the array.
>
> I also read that it is a VB Safearray. If I'm right that means, you are not
> able to edit it. And to initialize a new one with var abc = new VBArray you
> need an existing one.
>
> Everywhere, you can read, that there is no way to convert a JS array into a
> VBArray. E.g. 
> herehttp://blogs.msdn.com/david.wang/archive/2006/07/04/HOWTO-Convert-bet...
>
> So, I think, there is no way :(
>
> Another question with the debugger. I added debugger; but I couldn't see any
> difference... Do I have something else to do.
>
> 2009/1/31 Benjamin [API Guru] <[email protected]>
>
>
>
> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to