When you upgrade from WPTools 4 please note the changes for the following methods:
InputField = InputMergeField - with different parameter list!
ReadFieldText = FieldReadText
GetFields = FieldGetNames
GetPreviousFieldName = FieldGetNameInPar
FastMergeText = MergeText
MergeTextFor = obsolete
MergeTextForName = MergeText(Name)
FastMergeTextFor = obsolete
FastMergeTextForName = MergeText(Name)
MergeCopyText = obsolete
SetFastMode = BeginUpdate/EdnUpdate - usually not required!
Please note that the mail merge works differently than in WPTools 4: Inside the OnMailMergeGetText event you can use InputString to insert text at the cursor position.
| TWPCustomRtfEdit.OnInitializedRTFData | This event can be used to assign the same TWPRTFProps object to different editors. |
| TWPCustomRtfEdit.OnMailMergeGetText | This event is triggered when the MergeText or MergeEnumFields procedure is used. You can use the provided parameter inspname to select the required result string for the property Contents.StringValue.
Contents.StringValue := Table1.FieldByName(inspname).AsString; |
| TWPRichText.OnInitializedRTFData | This event can be used to assign the same TWPRTFProps object to different editors. |
| TWPRichText.OnMailMergeGetText | This event is triggered when the MergeText or MergeEnumFields procedure is used. You can use the provided parameter inspname to select the required result string for the property Contents.StringValue.
Contents.StringValue := Table1.FieldByName(inspname).AsString; |