How to write " in a string using Expression Editor
I want to have a " character inside a string in mmf through the expression editor. When I do, it thinks im trying to end a quote and therefore get a syntax error...
Is there a workaround other than having the single character " placed inside a text object and loading it in?
-Mel
Re: How to write " in a string using Expression Ed
Re: How to write " in a string using Expression Ed
I think that was a typo, its """
3 * "
Re: How to write " in a string using Expression Ed
""" doesn't work for me. "" does.
Re: How to write " in a string using Expression Ed
I think that's not a typo, it is 2 * "
Example: string$( "String" ) + "I love the "" character as much as you do, but it can be confusing if you use a "" in the expression editor. And if you want two, you have to do """" which is just plain messy!" + Edittext$( "Edit" )
Re: How to write " in a string using Expression Ed
Thanks guys.. Don't suppose anyone knows how to make internet explorer open a specific html file through 'command line' and 'execute external program'?
Re: How to write " in a string using Expression Ed
Re: How to write " in a string using Expression Ed
AFAIK, you can just run the htm/html file (execute external program -> file path), and windows will work out what to show it in (internet explorer / opera / netscape / firefox / etc.) which is better than forcing internet explorer, since some people (myself included) hate that browser with a passion :P
Edit:
ok, this method doesn't work, but Neat_Kliker2's suggestion does. Use the Vitalize object. (Open URL -> In New Window -> Name of file to open)
Re: How to write " in a string using Expression Ed
So that's how you insert the quotes! I was just using a string object with the quote typed into paragraph 1.
Re: How to write " in a string using Expression Ed
Same here, this makes things much easier! Thank you!
Re: How to write " in a string using Expression Ed
I thought that I would just add as it is in a similar vain... instead of using string objects or whatever to store and use a new line/return character you can use the built in newline$ constant.
For example, set edit box text to:
"LINE 1" + newline$ + "LINE 2" + newline$ + newline$ + "LINE 4"
This would achieve:
Code:
[:"blue"]LINE 1
LINE 2
LINE 3[/]
Took me a while to find so I thought I'd just post in case anyone else out there didn't know of this <img src="/center/images/graemlins/smile.gif" alt="" />