martonsagi / al-object-designer

AL Object Designer for Dynamics 365 Business Central development
MIT License
40 stars 21 forks source link

Copy Event does not recognize arrays #70

Open ewaldventer opened 4 years ago

ewaldventer commented 4 years ago

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;