I'm not sure exactly what you are trying for here, when I try
executing your "ok" line, I get:
dat0=:deb,>('"one"';'"two"';'"three"') ,.3j0": each <"(0) i.3wd'pc test'
|ill-formed number
But you can quote for wd using * and this kind of quoting continues to
the end of the array being passed to wd. This is mentioned in the
first paragraph at
http://www.jsoftware.com/docs/help701/user/wd_commands.htm
(I don't remember where to find the equivalent documentation for j804
- I don't see a reference to wd from
http://www.jsoftware.com/help/user/contents.htm and for example
http://www.jsoftware.com/primer/gui2.htm offers a dead link. And a
search for wd in the wiki didn't find me anything that seemed quite
right.)
Thanks,
--
Raul
On Mon, Dec 28, 2015 at 3:54 PM, Lippu Esa <[email protected]> wrote:
> Hello All,
>
> Unfortunately sometimes I get double quotes (") in my data (from Windows
> Event Log, for example).
>
> I can't find my way to put it into a wd table control. Doubling the double
> quotes does not work as it is reserved for a missing value.
>
> NB. deb from the stdlib
> dat0=:deb,>('"one"';'"two"';'"three"') ,.3j0": each <"(0) i.3wd'pc test'
> NB. ok
> dat1=:deb,>('"one"dq"';'"two"';'"three"') ,.3j0": each <"(0) i.3wd'pc test'
> NB. not ok
> dat2=:deb,>('"one"';'"two""dq"';'"three"'),.3j0": each <"(0) i.3wd'pc test'
> NB. not ok
> wd 'cc pac table 3 2'
> wd 'set pac data ',dat0
> wd 'set pac data ',dat1
> wd 'set pac data ',dat2
>
> I could of course change the double quote to something else but it would be
> nice to preserve the original data in the table.
>
> esa
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm