Share via

Merge field variable changing value

Anonymous
2017-12-15T17:12:11+00:00

Hello,

I have set a variable field with an operation such as

{set ArrTo {quote {if something 1 0} {if something 1 0 } {if something 1 0}}}

then I print the variable

{ArrTo}

and the result is the expected for this record 011

I then have the same variable, which has not been change but when I select it and press Shift+F9 the results are 101 and "".

I am really puzzled by this. any ideas?

N

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2017-12-15T20:30:33+00:00

    Not sure what you mean by this:

    <<

    I then have the same variable, which has not been change but when I select it and press Shift+F9 the results are 101 and "".>>

    But...

    First let's distinguish between the bookmark value (the value of ArrTo) and the result of an { ArrTo } or { REF ArrTo } field

    ArrTo only has one value at any given point in time. So if you have

    A: { SET ArrTo This }

    B: { ArrTo }

    C: { SET ArrTo That }

    D: { ArrTo }

    and you select all the fields and execute them, the Value of ArrTo would be "That". But because Word executes fields sequentially (let's forget about filds in the graphics layer for now) the result would be

    A: 

    B: This

    C:

    D: That

    In other words, Word does not go back and "correct" the displayed value in line "B:". But if you select line B and press F9, you should see the result 

    B: That

    Maybe that is the sort of problem you are seeing.

    Is this related to your other question about the { = { field } / 10 } field working OK but  { =0.1 * { = { field } / 10 } } returning an error when { field } is 101?

    Because if so, I would guess that that could be extra characters in your "101" field (perhaps thin spaces or some such).

    Was this answer helpful?

    0 comments No comments