Sets the value of the referenced element property.

public void SETP( 
string propertyReference
object value 
)

Parameters

propertyReference

Type: string

The fully-qualified or self-qualified property to set.

value

Type: object

The property value.

This global function assigns a value to the named property of the named control. The value will be coerced to the type of the target property before being assigned, if possible. If the coercion or the assignment fails then the script will terminate with an error message in the script log.

propertyReference typically takes the form of elementname@propertyname; however, elementname is optional. The shorthand SETP("@propertyname", value) can be used when referring to the control that owns the running script (i.e., 'self').

See GetColorDetail and GetMatchingSymbols for usage examples.