I’m trying to create an index using the DocumentBuilder.InsertField method. The field code that is created includes a “|” at the end that I can’t get rid of it.
Here’s an example of how I create the field:
Dim VarName as String
VarName = "MY VELOURIA"
DocumentBuilder.InsertField(" XE " & VarName & " \f ""b""", "")
The result is:
MY VELOURIA{ XE MY VELOURIA \f “b”|}
or MY VELOURIA| when field codes are hidden.
Note the “|” at the end of the field. How do I get rid of this character? Besides displaying this character everything works fine.
Thanks!