QPR Knowledge Base 2017.1

GetProperty

GetProperty

Previous topic Next topic No directory for this topic  

GetProperty

Previous topic Next topic Topic directory requires JavaScript Mail us feedback on this topic!  

Revision history:

Introduced in QPR 7.3.1

Last changed in QPR 8.1 SP3

 

Fetches one of the following Application properties:

NAME: Returns a string containing the application's name in the Value parameter. For example "QPR Modeling Client Client".

VERSION: Returns full version as a string. For instance "7.3.1.27".

EXEPATH: EXE file's full path as a string, e.g. "C:\Program Files\QPR Software Plc\QPR 2017 Clients\Modeling\QPR.Modeling.Client.exe"

ACTIVATIONCODE: Returns the product activation code used for activating the application.

 

Synopsis:

 

PGApplication.GetProperty(PropertyName, out Value)

 

Parameters:

 

PropertyName: String. One of the three properties described above.

out Value: Variant. Variant for the returned value.

 

Required Rights:

 

None.

 

Return Values:

Below are listed the return values that this function can return:

 

RV_APPLICATION_QUIT_CALLED

RV_SUCCESS

RV_INVALID_PARAMETER

 

Example Procedure:

 

iRet = PGApplication.GetProperty("NAME", ApplicationName)