Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
panzhuli
Visitor

insert new line

Hi all -

I can't find a reference to how to insert a new line with brightscript. Currently, I'm swapping "\n" with a "|" character, but a new line is really what I want. Example:

channel.description = strReplace2(item.titleBrief, "\n", " | ")

and I want:

channel.description = strReplace2(item.titleBrief, "\n", " [new line] ")

Thanks!
0 Kudos
2 REPLIES 2
EnTerr
Roku Guru

Re: insert new line

try chr(10), as in
print line1 + chr(10) + line2
0 Kudos
panzhuli
Visitor

Re: insert new line

thanks! you rock - how did i miss that in the docs???
0 Kudos