version 11.2
WA SET 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 be modified | |
value | Boolean | Value of the preference (True = allowed, | |
False = not allowed) |
Description
The WA SET PREFERENCE command can be used to set different preferences for the Web area designated by the * and object parameters.
Pass the preference to be modified in the selector parameter and the value to be assigned to it in the value parameter. In selector, 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 each preference, pass True in value to activate it and False to deactivate it.
Here is the meaning of the selectors:
wa enable Java applets: Used to allow the execution of Java applets in the Web area.
wa enable JavaScript: Used to allow the execution of JavaScript code in the Web area.
wa enable plugins: Used to allow the installation of plug-ins in the Web area.
wa enable contextual menu: Used to allow the display of a standard contextual menu in the Web area
See Also