An option is to include the delimiters in the variables. The following:
title=:'hey hey'
text=: 'this is the message'
wd 'mb "',title,'""',text,'"'
Could be done as:
title=:'"hey hey"'
text=: '"this is the message"'
wd 'mb ',title,text
And where there are or might be " chars in the paramter, use DEL delimiter:
title=:'"hey hey"'
text=: DEL,'this message had "quotes"',DEL
wd 'mb ',title,text
----- Original Message -----
From: "Devon McCormick" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Monday, February 18, 2008 9:43 PM
Subject: Re: [Jprogramming] Beginner Q--using variables in wd commands
There's also the form where everything after asterisk is taken to be
quoted:
txt=. 'Some "special" characters: [EMAIL PROTECTED]&*()-=_+`<>?,./:";[]{}\|'
wd 'mb "',tit,'" *',txt
On 2/18/08, Hahn, Harvey <[EMAIL PROTECTED]> wrote:
Thanks, Devon and Tom!
Your solution: wd 'mb "',title,'""',text,'"'
No matter what I did, I just couldn't seem to get the relationship
between the variable names and the punctuation right in that last
line--thanks, it works!
Harvey
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm