SourceStream Property

The TStream object where the source text for the merge process is stored.

property SourceStream: TStream;

Description

Set the SourceStream property before calling the Merge method to tell the component you want to merge the text contained in the TStream object.

Example

merge := TMemoryStream.Create;
s := memo1.text;
merge.writebuffer(s[1], length(s));
merge.seek(0, soFromBeginning);
DataMerge.SourceStream := merge;
DataMerge.MergeResult := msString;
DataMerge.Merge;
memo1.text := DataMerge.ResultText;
FreeAndNil(merge);