al-object-designer icon indicating copy to clipboard operation
al-object-designer copied to clipboard

Copy Event does not recognize arrays

Open ewaldventer opened this issue 5 years ago • 0 comments

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;

ewaldventer avatar Jul 28 '20 06:07 ewaldventer