how do I append a <CR><LF> at the end of string in expressions plugin?

Started by pierre2mars, June 03, 2009, 01:14:52 PM

Previous topic - Next topic

pierre2mars

Hi,

I'd like to send a csv line with data gathered from different com connections.
ie data1, data2 come from COM1
data3 comes from COM2
I want to send these data from COM3 as: "$;data1;data2;data3<CR><LF>
I managed to get the different data in COM3 configuration, then I try to set the output string in expressions plugin, but I found no way to append the <CR><LF> chars.
Any idea?

regards,

Pierre

Arthur Grasin

Hello Pierre.

You may use expression like:

RESULT1 = 'Value' + #$0D + #$0A

At this way you may send characters with any code. The hexadecimal code is specified after the '$' sign.

Because <CR> (ASCII) = 0x0D (hex) and <LF> (ASCII) = 0x0A (hex), then the CR+LF combination looks as the example above.
If you like my work, please take a few seconds and add feedback about our site or our software [here]

pierre2mars

I tried every possible way to write it, but not that one!
it's OK now, thank you very much,


best regards,

Pierre