GetPar - method of object PmiItem

Reading the value of the graphic item parameter. If the parameter is not present in this graphic item, then the parents of the item are searched for it and if not found the search continues up to the PmiRoot graphic item.
GetPar(sPar As String) As Variant
value = oItem.GetPar(sPar)
sPar(String) The name of the parameter (case sensitive text).
Return Values:
Returns value of the parameter. If an error occures, it returns the Empty value.
The parameter can be read:
- in script by the GetPar method.
- in configurators by using the macro expressions $.par (e.g. for data binding definition.

Both approaches read parameter the cascade way (bubbling), i.e. if item (in which the macro is used), does not have this parameter, then this parameter is searched in its parents (in the immersed item) and finally it is searched in PmiRoot item.

The method is also functional for Web panels.

Read the value from abc parameter. This parameter can be defined in oItem or in its parents.
x = oItem.GetPar("abc")
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice