4D v14.3

WA GET PREFERENCE

Home

 
4D v14.3
WA GET PREFERENCE

WA GET PREFERENCE 


 

WA GET PREFERENCE ( {* ;} object ; selector ; value ) 
Parameter Type   Description
Operator in If specified, object is an object name (string) If omitted, object is a variable
object  Form object in Object name (if * is specified) or Variable (if * is omitted)
selector  Longint in Preference to get
value  Variable in 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.

 
PROPERTIES 

Product: 4D
Theme: Web Area
Number: 1042

 
HISTORY 

Created: 4D v11 SQL Release 2

 
SEE ALSO 

WA SET PREFERENCE

 
ARTICLE USAGE

4D Language Reference ( 4D v14.3)

Inherited from : WA GET PREFERENCE ( 4D v11 SQL Release 6)
Parent of : WA GET PREFERENCE ( 4D v14 R2)