Double quote mark problem...
gyroscope
I am here.Member, Sous Chef, PRO Posts: 6,598
Hi, can't remember the best way to solve this any help appreciated, thanks:
I want to add a double quote mark to a text attribute but get Invalid Expression:
MyAtt.."""
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Comments
Solved: I tried \" (MyAtt.."\"") and that's working now. I'll keep this thread here in case anyone else needs the solution at some other time.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
@gyroscope , escape the quote with a backslash ( \ ). Alt-Shift-7 if your keyboard does not have that key.
e.g.
will display
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
Good to hear, @Hopscotch, thanks. (I'll try Alt-Shift-7 if it doesn't work on the iPad too - useful to know, thanks again).
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Another solution is to use two single quotes, so . . .
"Your name is ".."''"..name.attribute.."''"
Hi @Socks, Neat workaround, thanks (although \" seems to work OK on the device too).
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Escape characters are well established in pretty much every programming language including Lua so they should be entirely safe to use.
There's actually a few more tricks you can use like that but only some are supported by GameSalad.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Useful to know, thanks @Armelline - + I'll bookmark that page from your link.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps