Log in

View Full Version : ' in a string?



Footy
10-20-2012, 02:14 PM
This question has bugged me since I joined, I always wanted my debug to say Footy's blahblahblah, but ' ends the string. I know theres ways to add special characters like that into strings in Java, but is there one in Freepascal?

Thanks!
~Footy

litoris
10-20-2012, 02:15 PM
Writeln('Footy''s Awesome Dungeoneer');

Footy
10-20-2012, 02:18 PM
Its still not a '... I guess its good enough though.
Thanks

riwu
10-20-2012, 02:28 PM
Its still not a '... I guess its good enough though.
Thanks
No it's exactly what you are asking for. It will become a single ' for the output.
http://villavu.com/forum/showthread.php?t=89400

Footy
10-20-2012, 02:32 PM
Ah, I thought it as a ", not two 's. Thanks!