[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Pgm runs, but not in U2



Reply to note from Harry Binswanger  Sun, 02 Nov
2003 17:15:47 -0500

> I referred to with the literal string: {{5%}}
>
> and apparently you can't do that. It traps the prskbd thing I
> suppose.

It's the use/mention thing. Help files (including U2) "use" double
curly braces to signal the start of a block of code (a/k/a frame);
hence double curly braces are "unmentionable" in those files for any
other purpose. Single curly braces are no problem, however.

This applies to XPL code as well. Suppose you're writing code to
SEarch for double curly braces (a common task in routines that
manipulate Help frames). The straight-forward way, BX se "{{"Q2 ,
although fine for freestanding programs, bombs in U2. EDITOR
misinterprets the double open braces as the start of a new frame, and
execution hangs at BX se "! You have to avoid "mentioning" two curly
braces in a row, with something like BX se "{"Q2 . As
long as the two braces don't occur one right after the other, you're
OK.

--
Carl Distefano
cld@xxxxxxxx
http://users.datarealm.com/xywwweb/