Hello
I'm trying to implement the Replicatestring function into my formula to create a fixed length string, but have not been successful. I'd like to make the data that is returned to look like they are in column format using Replicatestring and return to the next line after the third column. The built in column formatting option available in the detail section will not work for me. This is the formula i'm using now. Any help is appreciated. Pat
WhileprintingRecords;
StringVar Item := {@Description};
StringVar Chain;
NumberVar ChCnt;
if ChCnt = 1
then (ChCnt:= 2; Chain:= Item)
else
if length(Chain) + Length(Item) > 254
then Chain := Chain else
Chain := chain+', '+Item
I'm trying to implement the Replicatestring function into my formula to create a fixed length string, but have not been successful. I'd like to make the data that is returned to look like they are in column format using Replicatestring and return to the next line after the third column. The built in column formatting option available in the detail section will not work for me. This is the formula i'm using now. Any help is appreciated. Pat
WhileprintingRecords;
StringVar Item := {@Description};
StringVar Chain;
NumberVar ChCnt;
if ChCnt = 1
then (ChCnt:= 2; Chain:= Item)
else
if length(Chain) + Length(Item) > 254
then Chain := Chain else
Chain := chain+', '+Item