If you have CR8 or higher the follwing formula will give what you have described above. It will be limited to 254 characters in CR8 and 8.5, but can be larger in CR9 (i'm not sure of the exact length limit, if one exists)
stringvar array splt:=split("A/USA/CANADA/UK","/"//change this to the field in your table
numbervar loopT:=ubound(splt);
numbervar loop;
stringvar hold;
stringvar output;
for loop:=1 to loopT do(
if loop=loopT then hold:= " and "& splt[loop]
else hold:=splt[loop] &", ";
output:=output+hold);
output
Mike
If you're not part of the solution, you're part of the precipitate.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.