property StringValue: AnsiString

<< Click to Display Table of Contents >>

Navigation:  Programming > Mail Merge (replace fields with data) and data forms > Update Field (Insert Text from Database) > Event OnMailMergeGetText > TWPMMInsertTextContents >

property StringValue: AnsiString

This is the result string as ANSI string. You can use the property CodePage to specify which code page should be used to convert it to the intern UNICODE representation. Please also see WideStringValue.

 

You can also assign formatted text in RTF, HTML or WPTOOLS format to StringValue.

 

If you merge in RTF text and the inserted text starts with a table you will see an empty line. This "empty" line is used to store the field marker which is not automatically deleted by the merge process. If it is not required to repeat the merge process or to read out modified text you can let the Merge procedure delete the field marker. Simply set the flag mmDeleteThisField in the property Contents.Options. This flag can be also very useful if the merged text contains field markers on its own which have to be processed in a second run!