Dataforms in WPTools

WPTools can be also used to create forms. These are special texts which are generally protected. The user may only edit the text in the  marked areas. We call this areas ‘Edit Fields’:

editfields

Using Edit Fields you (or the user of your application) can create forms to view and edit the data in a database.

Edit fields work like mail merge fields. Merge fields are fields which can be updated though an event – the only difference is, that the objects use the mode flag “wpobjWithinEditable”. When saved to RTF a \formfield instead of a \field tag is written. All procedures which work with mail merge fields will work for the edit fields, too. Like with mail merge fields the presentation of the start and end markers is controlled by the property InsertPointAttr. The text within the markers is controlled by AutomaticTextAttr.