4D v14.3WA GET PREFERENCE |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
WA GET PREFERENCE
|
WA GET PREFERENCE ( {* ;} object ; selector ; value ) | ||||||||
Parameter | Type | Description | ||||||
* | Operator |
![]() |
If specified, object is an object name (string) If omitted, object is a variable | |||||
object | Form object |
![]() |
Object name (if * is specified) or Variable (if * is omitted) | |||||
selector | Longint |
![]() |
Preference to get | |||||
value | Variable |
![]() |
Current value of the preference | |||||
The WA GET PREFERENCE command gets the current value of the preference in the Web area designated by the * and object parameters.
Pass the preference whose value you want to get in the selector parameter. You can pass one of the following constants, found in the Web Area theme:
Constant | Type | Value | Comment |
WA enable contextual menu | Longint | 4 | Allow the display of a standard contextual menu in the Web area |
WA enable Java applets | Longint | 1 | Allow the execution of Java applets in the Web area. |
WA enable JavaScript | Longint | 2 | Allow the execution of JavaScript code in the Web area |
WA enable plugins | Longint | 3 | Allow the installation of plug-ins in the Web area |
WA enable Web inspector | Longint | 100 | Allow the display of the Web inspector in the area |
For more information about these preferences, refer to the description of the WA SET PREFERENCE command.
In the value parameter, pass a variable that will receive the current value of the preference. The type of variable depends on the preference. The value variable is always a Boolean: it contains True if the preference is active and False otherwise.
Product: 4D
Theme: Web Area
Number:
1042
Created: 4D v11 SQL Release 2
4D Language Reference ( 4D v14.3)
Inherited from :
WA GET PREFERENCE ( 4D v11 SQL Release 6)
Parent of :
WA GET PREFERENCE ( 4D v14 R2)