GetPropertyBool(propertyName As String) As Boolean

 

Retrieves the boolean value of a property, set in the properties manager.

 

Select New Properties Manager from menu Script to add or remove properties manually.

 

Parameters:

 

Name

Type

Description

propertyName

String

The name of the property, as it is used in Properties Manager

 

Returns:

 

Type

Value

Description

String

value of property

Returns the value of the property propertyName if available.

Returns False if the property is not found

 

Available in:

 

WindowMain

WindowLink

YES

YES

 

Used in:

 

XojoScript Name

GUID

Calculate seminar participation fee 1

2F6CFC74-44AB-4956-A760-BBD5E57595E8

Create Seminar Invoice As PDF

2C3F7F29-A29A-4338-ACF5-51894B709DA5

Create Seminar Invoice With Slip As PDF

739DA58E-17EE-41CE-BB54-E7362CFE17D4

 

Hint: You can find references to XojoScripts which make use of this function by sending the following SQL statement to the database:

Select id,GUID, ScriptName,ScriptCode from im_scripts where ScriptCode Like '%GetPropertyBool%'

 

Example XojoScript:

 

Dim addSwissTax As Boolean = GetPropertyBool("cShowSwissVAT")

MsgBox("Add VAT for Switzerland : " + If(addSwissTax,"YES","NO"))

 

Dim addEuroTax As Boolean = GetPropertyBool("cShowEuroVAT")

MsgBox("Add VAT for Euro-Zone : " + If(addEuroTax,"YES","NO"))