Skip to main content
Version: 21

WA GET PREFERENCE

WA GET PREFERENCE ( {* ;} object ; selector ; value )

ParameterTypeDescription
*Operator→If specified, object is an object name (string) If omitted, object is a variable
objectText, Variable→Form object name (if * is specified) or Variable (if * is omitted)
selectorInteger→Preference to get
valueVariable←Current value of the preference
History
ReleaseChanges
19 R5Modified
19Modified
14 R2Modified
11 SQL Release 2Created

Description​

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:

ConstantValueComment
WA enable contextual menu4Allow the display of a standard contextual menu in the Web area. Default (any engine) = False
WA enable URL drop101Change drop icon and call On Window Opening Denied event when URLs or files are dropped in the Web area. Default (any engine) = False
WA enable Web inspector100Allow the display of the Web inspector in the area. Default (any engine) = False

In the value parameter, pass a variable that will receive the current value of the preference. The value variable is always a Boolean: it contains True if the preference is active and False otherwise.

See also​

WA SET PREFERENCE

Properties​

Command number1042
Thread safeno