07-01-2019, 11:29 PM
As I responded in the portuguese channel, don't use the TOwnedCollection (TIWScriptEvents ancestor) methods.
TIWScriptEvents have specific methods to handle adding/updating code:
TIWScriptEvents.HookEvent(const AEventName: string; AEventCode: string);
HookEvent will add a new event or update existing event using the provided code.
TIWScriptEvents have specific methods to handle adding/updating code:
TIWScriptEvents.HookEvent(const AEventName: string; AEventCode: string);
HookEvent will add a new event or update existing event using the provided code.