[Top]  [Chapter]  [Previous]  [Next]

TextDynamic supports two different kind of fields. First the fields which are text located with field start and -end markers. Such text can span multiple lines, paragraphs even pages. And there are fieldobjects. This fields are handles as a single character and cannot span multiple lines.


The first kind of fields are used for merge fields and edit fields. Use TextCursor.InputField to create such a field.


To create a field object use IWPTextCursor.InputFieldObject.


If you need to modify the contents of all fields in the text the obvious way to do it is using Memo.MergeText. But You can also use EnumTextObjects to trigger an event for all markers of a certain kind in the text. Inside the event You can read and change the contents of the field.


If you need to avoid the callback event You can use CPMoveNextObject.

[fields.htm]    Copyright © 2007 by WPCubed GmbH