Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetPar - method of object PmaObject

Description:
Reading the value of the Pma object parameter. If the parameter is not present in this Pma object, then the parents of this object are searched the cascade way (bubbling).
Syntax:
Variant GetPar(String sPar, [Long nAttr])
Calling:
value = oObject.GetPar(sPar)
Parameters:
sPar(String) The name of the Pma object parameter (case sensitive text).
nAttr[optional] (Long) Additional attributes for detecting parameter.
0 (default) - Return Values is of the String type.
1 - Return Values is of the Long 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 a value of the Pma object parameter. If an error occures the Empty value is returned.
Example:
Reads the value of the Pma object parameter named abc. This parameter can be defined in oObject Pma object or in its parents.
JavaScriptVBScriptSelect and copy to clipboard

var x = oObject.GetPar("abc");

History:
Pm8.00.06: Created
PROMOTIC 9.0.6 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