Parameters for Fields |
[Top] [Chapter] [Previous] [Next] |
1. Name - may contain spaces! (required)
If first character is the @ sign, the complete text will be handled as formula. (no other options are possible)
2. Displayname in " " - must be second position !
3. Options. +spc - this will add a space after the field if it was NOT empty. +spc/ - this will add a space before the field if it was NOT empty +nl - to add a new-line if it was not empty \f "some text" - will be added after the field if it was NOT empty. Alias: + "..." \b "some text" - will be added before the field if it was NOT empty. Alias: + "..."/ -"some text" - will be printed if it WAS empty \r "some text" - will be printed instead of the field
Special attributes \remove - the field will be removed \setattr - the paragraph attribute will be overwritten by field contents attributes \autosetattr - if this is first field in line use the para attribute \keepattr - protect the current paragraph attributes \loadimage - interpret field value as file name of an image file \loadtext - interpret field value as file name of a text file
Supports Word Syntax: \b before \f after. Spaces are allowed after +, -, \b, \f ...
4. Format @"...." \@ "%f" - uses this formatting code to format the field (usually floating point numbers)
5. Condition ?...=... ?fieldname=null - use this field if the specified field was null ?fieldname#null - use this field if the specified field is not null ?fieldname=zero - use this field if the specified field was zero ?fieldname#zero - use this field if the specified field is not zero
Use IWPFieldContents.ExecStrCommand to tell the engine that a field is null or zero. |