Expand my Community achievements bar.

SOLVED

Concatenation of strings

Avatar

Level 8

Hello

When concatenating a couple of strings, i need to get them in 2 lines/rows on the form, like below,

Pls. note here all i am using are VARIABLES like my_ID, my_date_my_comment

my_ID + " " + my_date + " " + my_time + my_COMMENT

i need it to display like below

ABC 08-26-2011 09:08

This is my COMMENT that My COMMENT should come in next line, pls. let me know how to concatenate the above strings, pls. let me know Java Script

     Actually, i kept it like below, but not working corerctly,

my_ID + " " + my_date + " " + my_time + "                                                                                                           " +my_COMMENT

Thank you

1 Accepted Solution

Avatar

Correct answer by
Level 2

Hi,

Try using

my_ID + " " + my_date + " " + my_time +"\n"+ my_COMMENT

->\n will insert a new line.This will make comments to be displayed in new line.

Thanks,

Anitha

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

Hi,

Try using

my_ID + " " + my_date + " " + my_time +"\n"+ my_COMMENT

->\n will insert a new line.This will make comments to be displayed in new line.

Thanks,

Anitha