show / hide menu

SetProperty

This function is used to set the property of a control. The attributes that needs to be passed to this function is a string. The control name and property can be combined as a string and passed to this function and that will set the property value. This function can be used if you need to use the control name dynamically in the rule.

Syntax:

SetProperty(ControlNameString, Value)

Control name should be provided to get the property of a control.

Example:

TextBox2.Value=GetProperty(“TextBox2.Label.Style.Bold”, true)

The function will return False since the bold property for the label is disabled. The function will return True if the bold property is enabled.