Example, if you copy the events for COD365.OnBeforeFormatAddress, it gives you:
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Format Address", 'OnBeforeFormatAddress', '', true, true)]
local procedure "Format Address_OnBeforeFormatAddress"
(
Country: Record "Country/Region";
var AddrArray: Text[100];
var Name: Text[100];
var Name2: Text[100];
var Contact: Text[100];
var Addr: Text[100];
var Addr2: Text[50];
var City: Text[50];
var PostCode: Code[20];
var County: Text[50];
var CountryCode: Code[10];
NameLineNo: Integer;
Name2LineNo: Integer;
AddrLineNo: Integer;
Addr2LineNo: Integer;
ContLineNo: Integer;
PostCodeCityLineNo: Integer;
CountyLineNo: Integer;
CountryLineNo: Integer;
var Handled: Boolean
)
begin
end;
instead of var AddrArray: array[8] of Text[100];
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Format Address", 'OnBeforeFormatAddress', '', true, true)]
local procedure "Format Address_OnBeforeFormatAddress"
(
Country: Record "Country/Region";
var AddrArray: array[8] of Text[100];
var Name: Text[100];
var Name2: Text[100];
var Contact: Text[100];
var Addr: Text[100];
var Addr2: Text[50];
var City: Text[50];
var PostCode: Code[20];
var County: Text[50];
var CountryCode: Code[10];
NameLineNo: Integer;
Name2LineNo: Integer;
AddrLineNo: Integer;
Addr2LineNo: Integer;
ContLineNo: Integer;
PostCodeCityLineNo: Integer;
CountyLineNo: Integer;
CountryLineNo: Integer;
var Handled: Boolean
)
begin
end;
Example, if you copy the events for COD365.OnBeforeFormatAddress, it gives you:
instead of var AddrArray: array[8] of Text[100];