-
Notifications
You must be signed in to change notification settings - Fork 33
LC0073
Arthur van de Vondervoort edited this page Nov 23, 2024
·
1 revision
This rule identifies the IsHandeld
parameter on event publishers that are not passed by var
. If the event signature contains a parameter called IsHandled
or Handled
of type Boolean, it is expected to be passed by reference (var). Missing var can lead to unexpected behavior.
[IntegrationEvent(false, false)]
local procedure OnBeforeMyProcedure(var MyTable: Record MyTable; IsHandled: Boolean) // The Handled parameter in the event signature should be passed by var to ensure proper event handling.
begin
end;