Re: Combining IF field and SYMBOL field fails
- From: "Peter Jamieson" <pjj@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 17:59:02 -0000
Unfortunately, I think it has always been this way (from at least Word 97).
Nor can you do
{ SET X { SYMBOL 65 } }
{ IF 1 = 1 "{ SYMBOL 65 }" "" }
(even { REF X } does not do what you might hope, and the common workaround
of using { QUOTE }doesn't work either.
So...if it /has/ to be SYMBOL, I don't think there's a simple way forward.
You can put an IF inside the SYMBOL, so you can do, e.g. an individual
character or a space:
{ SYMBOL "{ IF 1 = 1 "65" "32" }" }
but that's about the closest you can get. What effect do you need to
achieve?
Peter Jamieson
"John in Saratoga" <John in Saratoga@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:ACEB4557-CE21-4DCF-898C-E0B006151F7E@xxxxxxxxxxxxxxxx
I need to insert text into a Word document conditionally, so I'm using the
IF
field. For the text itself I need to use the SYMBOL field (for reasons I
needn't describe). But I can't get IF and SYMBOL to work together.
The field code
{ NUMPAGES } returns number of pages and
{ SYMBOL 65 } returns the letter A, as they should. (Those of course are
real field braces.)
But, while
{ IF 2 > 1 { NUMPAGES } }
also returns the number of pages
{ IF 2 > 1 { SYMBOL 65 } }
returns nothing at all.
Huh?
Word 2003 on XP. Tried two different machines. Same result.
{ IF 2 > 1 { SYMBOL 65 } "false"} returns nothing also, so the conditional
is evaluating TRUE. It's as if SYMBOL just fails when inside an IF field.
.
- Prev by Date: Re: how to create word form with data entry boxes for clerical staff?
- Next by Date: Re: error checking
- Previous by thread: RE: how to create word form with data entry boxes for clerical staff?
- Next by thread: Re: refreshing toolbar
- Index(es):
Relevant Pages
|