Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: mode7 on Tue 14/06/2011 19:52:19

Title: Using a double quote character in a string [Solved]
Post by: mode7 on Tue 14/06/2011 19:52:19
Hey guys, this seems so simple and yet I couldn't find anything in the documentation about this

I'm trying to use the double quote character (") in a string. obviously ags displays an error message. Is there any way to specially encode this character kind of like you can do %% to do the "%" character?

String Version = ExtractTag(RawMap, "<version = "", """);
Title: Re: Using a double quote character in a string
Post by: TomatoesInTheHead on Tue 14/06/2011 20:06:19
Yep, it's: \"
Title: Re: Using a double quote character in a string [Solved]
Post by: mode7 on Tue 14/06/2011 20:07:32
Thanks Tomatoes, sometimes the solution is so easy ;)
Title: Re: Using a double quote character in a string [Solved]
Post by: TomatoesInTheHead on Tue 14/06/2011 20:17:10
But hard to find if it's not in the manual (at least I couldn't find it there)
Title: Re: Using a double quote character in a string [Solved]
Post by: Khris on Tue 14/06/2011 20:25:05
For reference, it's mentioned here: http://americangirlscouts.org/agswiki/AGS_tidbits_&_snippets
(near the bottom)