Carriage return

Is there some way to programmatically put a carriage return into a string? I can do it using an HTML form, but "\n" doesn't do the normal C thing. Escaping strings would probably be a pain but could we have a function like "string getCR()" similar to getPI()?

We use to allow carriage

We use to allow carriage returns, but they were abused to much.
(Think me sending Johhny 100 new line characters a second)
We could add them back in, but we would have to find all instances they could be abused and remove them.

The \n for the new line is actually fairly easy String.Replace("\\n","\n"), or somethig like that

CR abuse

Fair enough, so don't allow carriage returns in message() calls. Shouldn't be a problem with logMessage() though and you should definitely be able to use it in replaceContent() and file io stuff.

From Wartt Hog

I could clear your logs, or

I could clear your logs, or make them appear to be empty with editLogs and carriage returns. Also, with replaceContent, johnny told me should work.

Come visit BlehCo at 2.718.2.818 for free challenge answers!

Uh,

Hold on, editLogs()? Is that actually a function now? Did I miss the memo?

From Wartt Hog

Edit logs is a fairly new

Edit logs is a fairly new function, is in a recent news post but hasn't made its way to the manual it... editLogs("search for","replace with");

http://www.electronicwar.net/wiki/EditLogs%28%29

In answer to the other question by bleh7777, the function char(10) can throw a new-line character into a string.
String s=hello+char(10);

Woah now... Did you

Woah now... Did you really?... I've been using them for weeks uninterupted with something along the lines of:
string endl="
";

Taking them out would mean rewriting just about every script I use. >.>

!!!

Lol, never thought of that!

From Wartt Hog