Delimiting a SET definition?

  • Thread starter Thread starter Ian
  • Start date Start date
I

Ian

Using Word 97.

The syntax of SET is:

~~~~~~~~~~
SET bookmarkname "bookmark text"
~~~~~~~~~~

where the bookmark text is delimited by the quotation marks.

But if the bookmark text itself contains a quotation mark, the bookmark
terminates at that point.

Is it possible to use a different delimiter in the SET statement,
instead of quotation marks (i.e. any character that does not appear in
the bookmark text)? I've tried several characters as possible
alternative delimiters, but they do not work.
 
Hi Ian,

Yeah, quotation marks are a pain. See my reply to your other question for
one possible approach.

Another would be to use single apostrophes, instead of quotes.

Something else you could try would be to insert SYMBOL fields instead of
quotes in the text (can't remember how this reacts in Word 97)

Probably the most reliable, though, would be to put the entire bookmarked
text into a QUOTE field, possibly with SYMBOL fields (you'll need to
test): "{Quote All your text here}"
The syntax of SET is:

~~~~~~~~~~
SET bookmarkname "bookmark text"
~~~~~~~~~~

where the bookmark text is delimited by the quotation marks.

But if the bookmark text itself contains a quotation mark, the bookmark
terminates at that point.

Is it possible to use a different delimiter in the SET statement,
instead of quotation marks (i.e. any character that does not appear in
the bookmark text)? I've tried several characters as possible
alternative delimiters, but they do not work.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
 
Hi Ian,

As Cindy says, you could use single quotes (in pairs), ir you could insert
{Quote 34} into your existing field wherever you want the double quote to
appear. This will give a straight double quote. To get curly double quotes,
replace the 34 with 147 and 148.

Cheers
 
PS: Whether the 147 and 148 options work might depend on your PC's font
definitions.
 
Back
Top