4D Write v16WR TEXT ACCESS |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Write v16
WR TEXT ACCESS
|
WR TEXT ACCESS ( area ; mode ) | ||||||||
Parameter | Type | Description | ||||||
area | Longint |
![]() |
4D Write area | |||||
mode | Integer |
![]() |
0=Allow access 1=Restrict access | |||||
The WR TEXT ACCESS command enables you to control access to the text in Area. When an area is displayed in read-only mode, the menus, rulers, and Zoom box are not present. The text can be seen and scrolled but not modified.
In the mode parameter, you can pass one of the following constants, found in the "WR Parameters" theme:
Constant | Type | Value | Comment |
wr allowed access | Longint | 0 | Free access to the area |
wr restricted access | Longint | 1 | The user can access area information in read-only mode |
When access to a formerly restricted area is changed
This command controls the editing of an area using keyboard data entry and copy/paste, but not using drag and drop to or from the area. This operation may be useful within certain interfaces; however, if you want to prevent any modification in the area, use the following statements:
The following example is the form method of the form that contains area. It sets area to read-only when the form is loaded.
If(Form event=On Load)
WR TEXT ACCESS(area;wr restricted access)
End if
Product: 4D Write
Theme: WR Area Options
Number:
89237
Created: 4D Write 6
4D Write Language ( 4D Write v16)