The Daily Click ::. Forums ::. Klik Coding Help ::. New lines and double-quotations in the expression editor
 

Post Reply  Post Oekaki 
 

Posted By Message

Ando



Registered
  08/04/2006
Points
  100
16th September, 2008 at 03:56:51 -

So, I know how to circumvent this issue, but the method used is... more space-consuming than I'd like. That method being creating new texts with nothing but a line break and a double-quotation ["] in their respective boxes. So you basically have

Edittext$("quote")+"Hello, how are you?"+Edittext$("quote")+" asked John."+Edittext$("br")+Edittext$("quote")+"Good,"+Edittext$("quote")+" replied Bob."
to achieve
"Hello, how are you?" asked John.
"Good," said Bob.
It's a little longer than I think it should be? So I was wondering if there was some other method introduced in MMF2 (I have Developer, if that matters) that I wasn't aware of that could make this simpler. Thanks much.

 
n/a

Fifth

Quadruped

Registered
  07/05/2003
Points
  5818

VIP MemberGOTW JULY 2010 WINNER!Kliktober Special Award TagGOTW HALLOWEEN 2011 WINNERPicture Me This Round 51 Winner!
16th September, 2008 at 06:28:48 -

Yeah, there are better ways.

To get the quotes, simply put two quotes in a row:

"Bob said ""Hello!"""


To get a new line, you can hold control and hit enter to get the string version, or add newline$ to use a more code-like version.

 
Go Moon!

Ando



Registered
  08/04/2006
Points
  100
16th September, 2008 at 07:33:04 -

That-
that's way better.
Thank you very much.

 
n/a

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
16th September, 2008 at 09:58:34 -

Things like this is why E++ was invented

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

wizkidweb



Registered
  11/12/2007
Points
  143
19th September, 2008 at 16:41:43 -

Well for double quotes, does \" work? It might.

Also, if you want a new line in an expression, just type +NewLine$+ (e.g. "This is a"+NewLine$+"new line.")



 
When you do things right, people won't be sure you've done anything at all.
- God (Futurama)
   

Post Reply



 



Advertisement

Worth A Click