Anonymous user
Align columns: Difference between revisions
→{{header|RapidQ}}
Line 3,609:
DefStr TextLeft, TextRight, TextCenter
DefStr
DefInt ColWidth(100), ColCount
DefSng NrSpaces
Line 3,616:
MText.position = 0
for x = 0 to MText.linecount -1
for y = 0 to Tally(
LWord = Field$(
ColWidth(y) = iif (ColWidth(y) < len(LWord), len(LWord), ColWidth(y))
next
Line 3,626:
MText.position = 0
for x = 0 to MText.linecount -1
for y = 0 to Tally(
LWord = Field$(
NrSpaces = ColWidth(y) - len(LWord)
'left align
|