Retrieves the string 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
an empty string 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 '%GetProperty(%'
Example XojoScript:
// retrieve the filename of the pdf template which is used for
letters
Dim
letterhead As String
= GetProperty("cLetterTemplate")
// "template_letter_A4_P1.pdf"
// retrieve fontname to be used in letter; "Source Sans
Pro", is standard font included with Seminar Pro
Dim
mainfont As String
= GetProperty("cFont")
// Retrieve name of sender location
Dim
senderlocation As String
= GetProperty("cLocation")
// "Le Mont-Pelerin"
// Retrieve sender address
Dim
sender As String
= Getproperty("cAddress")