AGG Software Forums
September 19, 2024, 07:58:35 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome on our forum!
 
   Home   Help Search Login Register  

Pages: [1]
  Print  
Author Topic: how do I append a <CR><LF> at the end of string in expressions plugin?  (Read 18406 times)
pierre2mars
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« on: June 03, 2009, 04:14:52 PM »

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
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #1 on: June 03, 2009, 04:23:46 PM »

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.
« Last Edit: June 03, 2009, 04:26:24 PM by Arthur Grasin » Logged
pierre2mars
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« Reply #2 on: June 03, 2009, 05:11:06 PM »

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


best regards,

Pierre
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines