curly braces
David Thompson
dthmpsn1 at uiuc.edu
Wed Apr 23 07:49:00 PDT 2008
>
>Thanks again
>Sure, I am always looking for shorter descriptions in my program¹s and after
>your first reply I saw that
>insertline a={All "" Right} or a={All "Right"}
>is the shortest macrotext, but use of a "}" is obligatory,
>because a="All "" Right" doesn¹t show correctly and
>a="All "Right"" is even refused, also in later Panorama's.
>You have to find that out yourself and therefore I remain rather curious
>where you found descriptions casu quo examples with "}" for that purpose.
When I read your example I made assumptions about
what you wanted the result to be that turned out
to be incorrect. When you use "quotes" there is a
rule about placing the same kind of quotes within
the text. You use two of them where you want one
to appear. For example:
Message "He said, ""I'll see you later."""
will cause this message to appear.
He said, "I'll see you later."
I first learned this rule in 1997 by reading the
Panorama II manual, and I assumed that you were
familiar with that rule as well. Your example used
insertline field a "All "" Right"
I thought you intended for
All " Right
to appear in field a. When I tested your code,
using Panorama 5.5, it caused two implicit
assignments to take place instead of one. First,
the word All was put into the field, and then the
second assignment replaced it with Right. Because
I thought your examples were intended to put just
one quote in the text, all my examples were
designed to do that. If I had realized that you
wanted two quotes, the examples would have been
a = {All "" Right}
a = "All """" Right"
a = ³All "" Right²
To produce the text
All "Right"
the examples would have been
a = {All "Right"}
a = "All ""Right"""
a = ³All "Right"²
The last example in each case is using smart
quotes, which you type by holding down the option
key while typing [ to produce ³ and holding down
the shift and option keys while also typing [ to
produce ².
As for where this can be found in later versions
of the Handbook, you can find it in chapter 23
(Formulas) under the sub-heading Values. In the
Panorama 5.5 handbook, that would be pages 1185
and 1186. In the Panorama 4 and Panorama V
handbooks the page numbers would be different,
but the chapter and sub-heading would be the same.
Dave
More information about the Qna
mailing list