Carriage return not been recognised in EpiTextBox

Hi,

I want to display the ‘orderHead.PickListComment’ field on the Customer Shipment Entry Screen’.

When the field is displayed on the ‘Order Entry Screen’, bound to an EpiTextBox, the carriage returns are recognised and the text is split across lines.

When I retrieve the info from an adapter and assign it to an EpiTextBox, the carriage returns are removed.

I have checked the obvious things like ‘multiline’ etc, but the problem continues to exist.

Has anyone any ideas what the issue may be and if there is a fix?

Thanks,

Andrew.

A CR (Carriage Return) sends the cursor back to the beginning of the line it is on. You need a LF to get multi-line:

If I paste text with just a CR character (0x0D) (the arrow points to it in the image below)

image

into a multi-line textbox, I get

image

And it stays like that until I do something to update the UI. Then it changes to:

image

Copying that text ind looking at the clipboard contents reveals it now has a CR and an LF (0X0A)

image

1 Like