top of page

18. Column-style List

Description

How to produce a column-style list with a computation.

Code

Single Column:

""
REPEAT RepeatedDialog
FORMAT "a
b"
RESULT + RepeatedVariable
END REPEAT


Alternative:

""
REPEAT RepeatedDialog
FORMAT "a\rb"
RESULT + RepeatedVariable
END REPEAT

Explanation

The FORMAT line tells HotDocs how to format the output. Placing either a "\r" or a hard return after the "a", but inside the quotes, will result in a hard return being inserted after each repeat. (See Computation 12: Returns in Text Strings)

A word of caution - if this is used inside a computation - the Hard Return will be treated as a Soft Return in your document, which could lead to problems if the line is full justified. I would use Left Justified for the line the computation is on.

bottom of page