GetPropertyInt(propertyName As String) As Integer

 

Retrieves the integer 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 0 if the property is not found

 

Available in:

 

WindowMain

WindowLink

YES

YES

 

Used in:

 

XojoScript Name

GUID

Application Startup

05A6F7AB-42EF-478E-BB3F-E5755774EB85

Set new BirthdaysTimeSpan property

B73607E5-3D47-40D2-9B16-6ADDDA94FD4E

 

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 '%GetPropertyInt%'

 

Example XojoScript:

 

Dim i As Integer = GetPropertyInt("BirthDaysTimeSpan")

MsgBox("List birthdays of the next " + Str(i) + " days")