On Tue, 4 Apr 2000, Sivakatirswami wrote:

> CR & TAB as the  user response input to the ASK dialogue box. . .I presume
> this will be treated as a literal? and it will look for "CR & TAB" as a
> string in the text and not really try to look for  the string (char10+char9)
> which is what we really are looking for . . . is that true?
> 
> Most other programs we use, Quark, MS Word, BBEdit consider the cr and tab
> as also special characters and allow a way to enter these in the find and
> Replace dialogues: where you put a \r for a return or a \t for a tab in the
> Find and Replace box? But I didn't see char9 or  char10 in the special char
> set.
> 
> If it doesn't, OK,  but I just wanted to check before I go about
> "hardwiring" this myself by loading the input into a variable and then
> replacing the \r's and \t' with "& cr &"   or "& tab &" etc. and dynamically
> rebuilding the strings. . .and then putting those back into the variables
> used by the replace command. . .that's very doable, but I won't be able to
> do that in ten lines of script. . .( have yet to get my PO approved. . .but
> going ahead with the R & D anyway!)  I intuit the answer may lie in  some
> adroit use of the "constant" command. . .but that's a mysterious for the
> moment.
> 
> Feature request: a "merge" command like was recently added to SC would be
> very useful in this situation, as well as for HTML generation. .
> .eliminating having to constantly do
>  & quote & 
> in the scripts.
> 
> e.g.   put Merge ("<BR CLEAR=`left`> <HR>") into tPhotoBreak
> 
> where the   `   char is dynamically substituted for a quote.
> 
> or maybe MC has that already? or has an equally simply solution?

Merge is really most useful when substituting *expressions*.  The
syntax isn't so swift, or at least isn't HTML-like (like PHP and ASP
and other similar substitution languages are).  Something in this area
is already planned for 2.4.

In your case, you should look at the replace command and the format
function.  The latter will do the kind of \t \" substitutions you're
looking for.
  Regards,
    Scott 

> Hinduism Today
> 
> Sivakatirswami
> Editor's Assistant/Production Manager
> www.HinduismToday.com
> [EMAIL PROTECTED]

********************************************************
Scott Raney  [EMAIL PROTECTED]  http://www.metacard.com
MetaCard: You know, there's an easier way to do that...


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to