show / hide menu

UpdateControl

This function is used to forcibly update a control’s value, with the option to execute its trigger.

Syntax:

UpdateControl(Control, ExecuteTrigger)

Description:

The UpdateControl function allows you to forcefully update the value of a control. Additionally, it provides an option to execute the control’s trigger based on a boolean parameter.

Arguments:

ControlName
Argument Type: Control
Is Optional: False
Description: The control that needs to be updated.

ExecuteTrigger
Argument Type: Boolean
Is Optional: True
Description: Determines whether the rule associated with the control should be executed (True) or not (False).

Example:

UpdateControl(MyTextBox, True)

In this example, the function updates the control named MyTextBox, and if ExecuteTrigger is set to True, it executes the rule associated with the control.
The UpdateControl function provides a means to update control values forcefully and optionally execute associated triggers. This can be useful in scenarios where immediate updates are required, and subsequent actions need to be triggered based on the updated control values.