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.
0
Comments
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
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
Note that some Countries (e. g. Germany) have an empty line between the street and the city.
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]