Navigasjon
Dummies offer Contact Scala Sales

Get our fun and informative "Digital Signs and Displays for Dummies" ebook or contact a Scala representative to learn more.

 

 

Getting line breaks using TextFile EX

InfoChannel normally recognizes ^n as the code for return, but the Textfile EX actually displays it literally rather than interpret it. It converts it to ^^n. The extra ^ forces the ^n to appear as text.

To work around it you need to create a 2nd variable that changes the ^^n back into a real ^n return.

Add a Special Event to the page, and in the Branch menu under Set Variable enter:
textvar1 = left(line1,search(line1,0,"^^n")-1)+"^n"+right(line1,length(line1)-search(line1,0,"^^n")-2);

Then instead of displaying !line1, display !textvar. You could apply this to line2, etc. This also only catches the first ^n in a line. If you want to have multiple soft-returns, that will take a little extra scripting.


Reach your audience!
Watch this video >>>

Scala digital signage reach your audience  Scala digital signage awards     Follow us on TwitterFollow us on Twitter    Find us on FacebookFind us on Facebook

©1993-2012 Scala. Scala, InfoChannel, SignChannel and the Exclamation Point Logo are registered trademarks of Scala, Inc.     Scala Info | Privacy Policy