Addresses in report - suppressing lines

shogan@mila.ieshogan@mila.ie Member Posts: 113
edited 2004-03-15 in Navision Attain
Hi all,

Simple problem - just no idea of how to do it.

I have several address lines, some of which appear blank and make the address look stupid.

Is there a way or calculation that I can do to display only lines that have data, and if not, to bring up the following line instead?

Thanks!
Stephen H.

Comments

  • StephenGStephenG Member Posts: 99
    Hi Stephen

    You can copy the Address lines into any address Array then do COMPRESSARRAY on the array.

    Have a look at Codeunit 365 "Format Address"

    This should point you in the right direction :)
    Answer the question and wait for the answer.
  • Dean_AxonDean_Axon Member Posts: 193
    Create an array and then use compressarray:

    i.e.

    new var called custaddr with 6 dimensions:

    custaddr[1]:="Sell-to customer No.";
    custaddr[2]:="Address 1";
    custaddr[3]:="Address 2";
    custaddr[4]:=City;
    custaddr[5]:=etc....
    Compressarray(CustAddr);

    Hope it helps :D
    Remember: Keep it simple
  • Timo_LässerTimo_Lässer Member Posts: 481
    As StephenG wrote you should have a look at Codeunit 365.
    Note that some Countries (e. g. Germany) have an empty line between the street and the city.
    Timo Lässer
    Microsoft Dynamics NAV Developer since 1997
    MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
Sign In or Register to comment.