Hi,
try js.getB, i.e. line 3 should be:
ec = js.get*b*("a", x)
Cheers---Christoph
NB: I started calling J from within XLS seriously about a year ago or
so---and it works exceptionally well. (It has some flaws which are because
of OLE in the first place.
2010/4/15 Björn Helgason <[email protected]>
> Have you looked at replacing Excel with Grids?
>
> 2010/4/14, Bartsch, Martin <[email protected]>:
> > Hello,
> >
> > I´m going to use the J OLE Server for Excel in one project.
> > This seems to me a great solution where everyone wants to use excel and I
> > want to develop the software in my language of choice J.
> >
> > So far I have one issue with getting strings out of J into Excel-VBA.
> > The following example gives two different values for x ("?????") and a
> > ("hello world").
> >
> > 1 Sub jserver_issue()
> > 2 ec = js.do("a=.'hello world'")
> > 3 ec = js.get("a", x)
> > 4 MsgBox x
> > 5 ec = js.do("wdinfo a")
> > 6 End Sub
> >
> > Is this a normal / expected behaviour ?
> > Has anyone found the same issue or am I doing something wrong ?
> >
> > Thanks for help,
> >
> > Martin
> >
> >
> >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
>
>
> --
> Björn Helgason, Verkfræðingur
> Fornustekkum II
> 781 Hornafirði,
> t-póst: [email protected]
> gsm: +3546985532
> sími: +3544781286
> http://groups.google.com/group/J-Programming
>
>
> Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
>
> góður kennari getur stigið á tær án þess að glansinn fari af skónum
> /|_ .-----------------------------------.
> ,' .\ / | Með léttri lund verður |
> ,--' _,' | Dagurinn í dag |
> / / | Enn betri en gærdagurinn |
> ( -. | `-----------------------------------'
> | ) | (\_ _/)
> (`-. '--.) (='.'=) ♖♘♗♕♔♙
> `. )----' (")_(") ☃☠
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm