I cant seem to get spaces to stick in the 5th line of my array. The SellToAddr variable is of type "text". How can I get spaces in between the pieces of the 5th line?
SellToAddr[1] := "Sell-to Customer Name";
SellToAddr[2] := "Sell-to Customer Name 2";
SellToAddr[3] := "Sell-to Address";
SellToAddr[4] := "Sell-to Address 2";
SellToAddr[5] := "Sell-to City" + "Sell-to County" + "Sell-to Post Code";
SellToAddr[6] := "Sell-to Country/Region Code";
COMPRESSARRAY(SellToAddr);
thanks
0
Comments
Compressarray has another functionality: it will "compress" all array elements in a way, that if the element is empty, all elements behind it will be shifted to the beginning. It means:
if you have this array:
after you do COMPRESSARRAY the reult will be:
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Hello Kine,I want to Print Item."Vendor No." in a Report,with using of COMPRESSARRAY function.I mean i want to remove all lines having blank Vendor no..Any Idea?
Please don't hijack old, only remotely related threads.
You probably need to use in the OnAfterGetRecord of your Item DataItem.
COMPRESSARRAY is not suitable for your purpose.