* Get the longest label and add 1 SELECT max(len(label_name))+1 ; FROM mydb!table1 ; INTO ARRAY laMaxCaptionThen, when you format the return string, change the line to this:
m.lcReturn = m.lcReturn + ; ALLTRIM(m.laCaptions(i,1)) + ; REPLICATE(' ',laMaxCaption[1]-len(laCaptions[i,1])+[: ]+ ; TRANSFORM(EVALUATE(m.laCaptions(i,2)))+CHR