GetProp - method of the PmgObject object
Description:
Reading the value from any property of the object defined by its name.
This method is obsolete (but functional) and since version
Pm9.0.0 is no longer needed (it was designed only for
InternetExplorer 8 and lower).
Syntax:
Variant GetProp(String sProp)
Parameters:
sProp | (String) The name of the property (case sensitive text) |
---|
Return value:
Returns a value of the property.
If an error occures, then the method returns:
null for
JavaScript or
Empty for
VBScript (it can be tested by the
Pm.IsValid method).
Example:
Reading the value of the
X property:
JavaScriptVBScriptSelect and copy to clipboard
var x = oObject.GetProp("X");
Dim x
x = oObject.GetProp("X")