version 11.2
WA GET PREFERENCE ({*; }object; selector; value)
Parameter | Type | Description | |
* | * | 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 |
Description
The WA GET PREFERENCE command can be used to get 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 |
wa enable Java applets | Longint | 1 |
wa enable JavaScript | Longint | 2 |
wa enable plugins | Longint | 3 |
wa enable contextual menu | Longint | 4 |
For more information about these preferences, please 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. In the current version of 4D v11 SQL, the value variable is always a Boolean: it contains True if the preference is active and False otherwise.
See Also