TerMergeFields
Replace field names with field data strings.
boolean TerMergeFields(names,data,repaint)
String names; | This argument points to a list of field names. The field names must be separated by a '|' character. The list must be null terminated. |
String data; | This argument points to a list containing data strings for the corresponding field names in the 'names' argument. The data strings must be separated by a '|' character. The list must be null terminated. |
boolean repaint; | Repaint the window after this operation |
Description: This function is used to replace the field names in the current editing window with the corresponding field data strings. Refer to the 'Mail/Merge Support' chapter on how to denote field names during the editing session.
If the document uses a field name which is not contained in the field name table, the editor sends a TER_MERGE message to the parent window. The 'lParam' parameter for this message contains the variable to the field name string. If your application processes this message, it should return the variable to the field data string.
Return Value: This function returns true if successful.