Multiline Text Format
This text formatting only applies to multi-line texts.
The field:
{
expression
Format
format
} where the
expression
is of datatype text, is equivalent to the field:{
ToList
(expression
) Format
format
}Example
Consider the variable
BuyerAddress
as a multi-line text:21Station Road
Southwold
Suffolk
IP18 6AX
The expression:
{BuyerAddress Format ", |, |"}
will evaluate to:
"21 Station Road, Southwold, Suffolk, IP18 6AX"
That is, each line will be punctuated according to the punctuation symbols specified by the
format
.Similarly the expression:
{BuyerAddress Format "^L"}
will change the line breaks on the questionnaire to carriage returns in the document ie:
21Station Road
Southwold
Suffolk
IP18 6AX
Note that the same effect as the expressions used above can also be achieved using the text function.
So for example the expression:
{BuyerAddress Format ", |, |"}
is also equivalent to the function:
Text( BuyerAddress, ", |, |" )
note
See List format for punctuating lists.