version 6.0
WR O OPTIONS (area; emptyRefString; saving; printMode; format; undo)
| Parameter | Type | Description | |
| area | Longint | 4D Write area | |
| emptyRefString | String | Replacement string for empty references | |
| (unused with 4D Write 6.5) | |||
| saving | Integer | 0=No confirmation | |
| 1=Confirm | |||
| -1=No change | |||
| printMode | Integer | 0=Variable length | |
| 1=Fixed size | |||
| -1=No changes | |||
| format | Integer | 0=4D Write and first page as PICT | |
| 1=4D Write | |||
| -1=No change | |||
| undo | Integer | 1=Disabled | |
| 0=Enabled | |||
| -1=No change |
Note 6.5: This command was only maintained for compatibility purposes. We recommend using the WR SET AREA PROPERTY command.
Description
The command WR O OPTIONS sets several functional parameters for area.
Pass an empty string in emptyRefString. This parameter is not used in 4D Write 6.5. If the value of a reference is empty and if the View>Reference menu command is unchecked, no replacement string is displayed.
The message "This area has been modified. Do you want to save it?" appears when any command has affected the area since its creation. You can disable the display of this message using the WR O OPTIONS command.
confirm controls whether or not 4D Write will display confirmation dialog boxes when a 4D Write area is closed but not saved. If confirm equals 0, no confirmation dialog box appears. If confirm equals 1, 4D Write displays the confirmation dialog box. If confirm equals -1, the current setting is not changed.
printMode controls how area is treated when a form that contains area is printed. If printMode equals 0, the text in area is truncated to the size of area. This is similar to a fixed frame included form. If printMode equals 1, area expands to print all of the text, even across pages. This is similar to a variable frame included form. If printMode equals -1, the current setting is not changed.
format specifies the format in which the document will be saved. If format equals 0, area is saved in the 4D Write format and its first page is saved in PICT format. If format equals 1, area can be saved only in the 4D Write format. If format equals -1, the current setting is not changed.
undo enables or disables the Undo menu item in the Edit menu. Use this parameter in offscreen areas; it saves memory and increases 4D Write speed. If undo equals 0, the Undo menu item is enabled. If undo equals 1, the Undo menu item is disabled. If undo equals -1, the setting is not changed.
See Also