A
Andrew Straw
Hi,
I'm driving myself nuts trying to figure out Microsoft's "logic". I
have a tiny doc created from scratch to help me isolate the problem
originally found in a large document. In a nutshell, it appears that
the SEQ field evaluates itself twice when it's in quotes. How do I
stop it or work around this?
The field codes and text:
{ SET bookmark1 "Text { SEQ listA}"}
Now the reference is to { REF bookmark1 }
{ SET bookmark2 "Text { SEQ listA}"}
Now the reference is to { REF bookmark2 }
{ SET bookmark3 "{ SEQ listA}"}
Now the reference is to { REF bookmark3 }
The result:
Now the reference is to Text 2
Now the reference is to Text 4
Now the reference is to Text 5
What's wrong:
I cannot figure out why the bookmark should resolve to "Text 2", since
the listA SEQ has only appeared once.
Other points:
As seen with bookmark3, it appears the update twice only happens when
something else is in the quotes.
I think I need to have quotes, because I actually want the SET field
to be something like {SET myFigX "Figure {STYLEREF \n "Heading
1"}-{SEQ figures}"} so that {REF myFigX} produces "Figure 3-1", for
example. If there's an alternative, please let me know!
Thanks in advance for your help!
Cheers!
Andrew
I'm driving myself nuts trying to figure out Microsoft's "logic". I
have a tiny doc created from scratch to help me isolate the problem
originally found in a large document. In a nutshell, it appears that
the SEQ field evaluates itself twice when it's in quotes. How do I
stop it or work around this?
The field codes and text:
{ SET bookmark1 "Text { SEQ listA}"}
Now the reference is to { REF bookmark1 }
{ SET bookmark2 "Text { SEQ listA}"}
Now the reference is to { REF bookmark2 }
{ SET bookmark3 "{ SEQ listA}"}
Now the reference is to { REF bookmark3 }
The result:
Now the reference is to Text 2
Now the reference is to Text 4
Now the reference is to Text 5
What's wrong:
I cannot figure out why the bookmark should resolve to "Text 2", since
the listA SEQ has only appeared once.
Other points:
As seen with bookmark3, it appears the update twice only happens when
something else is in the quotes.
I think I need to have quotes, because I actually want the SET field
to be something like {SET myFigX "Figure {STYLEREF \n "Heading
1"}-{SEQ figures}"} so that {REF myFigX} produces "Figure 3-1", for
example. If there's an alternative, please let me know!
Thanks in advance for your help!
Cheers!
Andrew