Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » newline " " not supported?
newline " " not supported? [message #27574] Fri, 23 July 2010 14:39 Go to next message
ratah is currently offline  ratah
Messages: 107
Registered: July 2010
Experienced Member
Hello everybody,

Someone know why my newlines do not work when i use messagebox:
String infos;

infos << "Hello everybody\n";
infos << "Have a nice day";

PromptOK(infos);


It will swho a messagebox whith "Hello everybody Have a nice day in a single line"
Re: newline " " not supported? [message #27575 is a reply to message #27574] Fri, 23 July 2010 14:45 Go to previous messageGo to next message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
The reason is that PromtOK expects QTF. You have two options. You can use QTF newline (&) or you can toggle QTF by starting your string with "\1".
Re: newline " " not supported? [message #27576 is a reply to message #27574] Fri, 23 July 2010 14:46 Go to previous messageGo to next message
Zbych is currently offline  Zbych
Messages: 325
Registered: July 2009
Senior Member
ratah wrote on Fri, 23 July 2010 14:39

Someone know why my newlines do not work when i use messagebox:


Prompt uses Qtf format, so you should convert infos to Qtf, or use Qtf tags directly.

PromptOK(DeQtfLf(infos));

PromptOK("Hello & world");


Re: newline " " not supported? [message #27577 is a reply to message #27576] Fri, 23 July 2010 14:55 Go to previous message
ratah is currently offline  ratah
Messages: 107
Registered: July 2010
Experienced Member
thank you very much
Previous Topic: add some types to Value
Next Topic: String w/high characters but not UTF?
Goto Forum:
  


Current Time: Fri Mar 29 14:25:42 CET 2024

Total time taken to generate the page: 0.01760 seconds