In pascal we assign a value to a string with a double single-quote. What if we want to write out a single quotation mark as a string?
how to write out '? So I want to echo out a string like "It's a good day", but it cant cause there is a single quotation mark that will destroy the entire string.
thanks!
Well, if Freepascal follows Pascal dialect, then you type the single quote twice.
It''s a good day
There are other escape sequences described at http://www.freepascal.org/docs-html/ref/refse8.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With