cancel
Showing results for 
Search instead for 
Did you mean: 

Insert new line in string

Former Member
0 Kudos

Hi all,

I am using a sendmail webservice in VC. When trying to insert a new line into a string, (in the body field), chr(10) is not being recognized. My compiler is set to Flash, not flex2, so it should be working, shouldn't it?

Is there anyone who knows why is not working?

The content of the body field is:

'Test line 1 '&chr(10)&' Test line 2.'

Thanks a lot,

Mario

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Mario,

Are you using 'Input field' or 'Text editor' for body field?

Chr(10) will be recognized for 'Text Editor' UI Element for multiple lines.. Change your Body field as Text editor.

Regards

Basheer

Former Member
0 Kudos

Hi Basheer,

I was using Input Field. Thanks for your advice.

Finally I have solved the problem by entering the html code in the string. Using the following sequence I have been able to reproduce the carriage return. <BR>

Thanks!

Mario