Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetPar - method of object PmObject

Description:
Reading the value of the of the PROMOTIC object parameter. If the parameter is not present in this PROMOTIC object, then the parents of the object are searched the cascade way (bubbling).
Syntax:
GetPar(sPar As String, [nAttr As Long]) As Variant
Calling:
value = oObject.GetPar(sPar)
Parameters:
sPar(String) The name of the PROMOTIC object parameter (case sensitive text).
nAttr[optional] (Long) Additional attributes for detecting parameter.
0 (default) - The value is returned as String data type.
1 - The value is returned as Long data type.

If the value cannot be converted into an integer then the method returns NaN value - it can be tested by the Pm.IsValid method.

Return Values:
Returns the value of the PROMOTIC object parameter. If an error occures the Empty value is returned.
Example:
Reads the value of the PROMOTIC object parameter named abc. This parameter can be defined in oObject PROMOTIC object or in its parents.
VBScriptSelect and copy to clipboard

Dim x
x = oObject.GetPar("abc")
PROMOTIC 9.0.0 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice