Function TWPCustomRtfEdit.CodeLoadSaveEmbeddedText(Stream:TStream; format:string; SaveText:Boolean; AName:string; Code:TWPTextObjType; LocateOptions:TWPCodeLocateOptions) : Boolean

Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit

Parameters

Returns

The type of the result value is Boolean.

Description

This function can be used to save or load the text which is wrapped by merge fields, hyperlinks or bookmarks WITHOUT moving the cursor or use the mailmerge function.
If wpStartAtCursorPosition was used in parameter LocateOptions the cursor will be positioned after the closing object.
An alternative is to use the regular save and load methods (, ) and specify the fieldname in the format string, i.e. "f:name=RTF" to save or load the contents of the field "name". Also see which is internally used to locate the objects.