Carriage return/line feed in labels

I have an expression in a label as below:

({cntBottling.dsTankFlowData}[“FlowSet1”])+" / "
+({cntBottling.dsTankFlowData}[“Transfer1Flow”])

which is displayed as 2.3/2.2

I would like it to display as:

2.3/
2.2

How do I modify the expression to insert a Crlf?

TIA.

David - for multiline labels, you can use HTML formatting. Try changing your expression to this one:

"<HTML>"+
({cntBottling.dsTankFlowData}["FlowSet1"])+
" / <BR>" +
({cntBottling.dsTankFlowData}["Transfer1Flow"])

If you familiar with HTML, you might be worried that this html is invalid (i/e no BODY tag, no ending HTML tag, etc).
Don’t worry - you can be sloppy with HTML in FactoryPMI

Hope this helps,

1 Like