How do you check existing scripts and change them when necessary? Unfortunately, because of the nature of the changes, the scripts cannot be changed using a simple find and replace operation. This section describes which checks you can perform and, where possible, which changes you can make.
Scan any existing scripts for the use of COM scripting EditForm/WizardForm objects with the following event handlers:
OnClick
OnEnter
OnExit
OnChange
Test the result of the scripts found, check the code, and then change the code if required:
When initializing form components, the OnChange event is no longer activated, which may result in scripts behaving differently.
When this event handler changes a component value, the OnChange event may now immediately be triggered again for that component, which may result in the script behaving differently.
An OnChange event now automatically occurs as soon as an assignment is made, even if the assignment is made within an event. Therefore, do not manually call the OnChange event after the assignment, to avoid any changes in performance. The following construct:
edit1.SetValue xyz
IsahEvent_OnChange(edit1.GetId)
will run the OnChange event twice in the new situation, which is not necessary.
Note: Do not adapt constructs that force an IsahEvent_OnExit event after an assignment.
Scan the existing scripts for the use of COM scripting EditForm/WizardForm objects with events in which hard-coded component IDs are used. These hard-coded IDs must be replaced by calling the GetId() method.