The Trigger_Enable() function enables or disables all object triggers for a given application.
Trigger_Enable(product_ID, flag)
• product_ID – An integer specifying the product ID of the application whose triggers you’re disabling or enabling.
• flag – A boolean that enables or disables triggers. Values are:
Value |
Description |
---|---|
true |
Triggers are enabled for the specified product. |
false |
Triggers are disabled for the specified product. |
A boolean indicating the result; true if the function succeeded, false if it didn’t succeed.
You can use this function or the Customization Status window to disable all triggers for a given application. Use the Trigger_DisableSingle() and Trigger_EnableSingle() functions to disable and enable individual triggers.