You may try toDEL

toDEL=: [: ; (DEL&, @ (,&DEL)) each
datt=. , ('"one"dq"';'"two"';'"three"') ,.3j0": each <"(0) i.3
wd 'set pac data *',toDEL datt

Пн, 28 дек 2015, Lippu Esa написал(а):
> Thanks, Raul!
> 
> Of course I made an error while composing the message. This was what I meant.
> 
> NB. deb from the stdlib
> dat0=:deb,>('"one"';'"two"';'"three"')    ,.3j0": each <"(0) i.3 NB. ok
> dat1=:deb,>('"one"dq"';'"two"';'"three"') ,.3j0": each <"(0) i.3 NB. not ok
> dat2=:deb,>('"one"';'"two""dq"';'"three"'),.3j0": each <"(0) i.3 NB. not ok
> wd'pc test'
> wd 'cc pac table 3 2'
> wd 'set pac data ',dat0
> wd 'set pac data ',dat1
> wd 'set pac data ',dat2
> 
> and the documentation is here:
> 
> http://code.jsoftware.com/wiki/Guides/JQtChildClasses/Table
> 
> and an excerpt of it is>
> 
> "data - wd'set id data datalist ' specifies the contents of cells in the 
> current block according to datalist, which is a text string that is a raveled 
> list of cell contents. Cell contents are space separated, with numbers or 
> quoted literals (including "" for an empty cell)."
> 
> My goal is to have an easy way to display a boxed m by n array of "any" size 
> with possible row and column headers. Like with GTK grid in J7.
> 
> Esa
> 
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Raul Miller
> Sent: tiistaina 29. joulukuuta 2015 0.06
> To: Programming forum <[email protected]>
> Subject: Re: [Jprogramming] Double quotes in wd child class table data
> 
> 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
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to