MergeResult Property

Determines how the result of the merging process is returned to your application.

property MergeResult: TBBMMergeSource;

Description

The chart below shows the possible values for MergeResult and what they mean.

MergeResult Value Meaning
msString The merged text will be returned as a string through the ResultText property.
msFile The merged text will be saved to the file specified by the ResultFilename property. Set the ResultFilename property prior to calling the Merge method so that the component knows what file you want to output the result to.
msStream The merged text will be saved to the stream specified by the ResultStream property. Set the ResultStream property prior to calling the Merge method so that the component knows what TStream you want to output the result to.

Set the MergeResult property before calling the Merge method so the component knows how you want the result returned to your application. You only need to set MergeResult if you will be using the msString result method. Setting the ResultFilename or ResultStream automatically sets the MergeResult property to the correct value for you. The component also defaults to a value of msString for the MergeResult property.

Example

DataMerge.SourceText := memo1.text;
DataMerge.MergeResult := msString;
DataMerge.Merge;
memo1.text := DataMerge.ResultText;

See Also

ResultFilename Property
ResultStream Property
ResultText Property