<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Strings &#8211; Xojo Programming Blog</title>
	<atom:link href="https://blog.xojo.com/tag/strings/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.xojo.com</link>
	<description>Blog about the Xojo programming language and IDE</description>
	<lastBuildDate>Tue, 02 Mar 2021 17:23:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Escaping Quotes in Strings</title>
		<link>https://blog.xojo.com/2020/02/12/escaping-quotes-in-strings/</link>
		
		<dc:creator><![CDATA[Paul Lefebvre]]></dc:creator>
		<pubDate>Wed, 12 Feb 2020 20:08:46 +0000</pubDate>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Strings]]></category>
		<category><![CDATA[Xojo Programming Language]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=6593</guid>

					<description><![CDATA[Here&#8217;s a quick tip about embedding quotes in your string literals. Let&#8217;s say you need to put quotes inside a string. The most common way&#8230;]]></description>
										<content:encoded><![CDATA[
<p>Here&#8217;s a quick tip about embedding quotes in your string literals. Let&#8217;s say you need to put quotes inside a string. The most common way I&#8217;ve seen developers do this is with Chr(34):</p>



<pre class="wp-block-preformatted">Var myString As String = "Hello " + Chr(34) + "World" + Chr(34)</pre>



<p>Some developers choose to define a constant and use that instead:</p>



<pre class="wp-block-preformatted">Var myString As String = "Hello " + kQuote + "World" + kQuote</pre>



<p>But did you know you can insert a quote into your string by using two quotes instead?</p>



<pre class="wp-block-preformatted">Var myString As String = "Hello ""World"""</pre>



<p>Makes the string a little more legible, doesn&#8217;t it? Learn how to handle <a href="https://blog.xojo.com/2020/02/13/non-visible-characters-in-strings/">non-visible characters in strings</a> in the next post.</p>



<p>*This is an update of an older post by Thom McGrath.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
