<?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>Auto-Complete &#8211; Xojo Programming Blog</title>
	<atom:link href="https://blog.xojo.com/tag/auto-complete/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.xojo.com</link>
	<description>Blog about the Xojo programming language and IDE</description>
	<lastBuildDate>Thu, 15 Jun 2023 15:46:07 +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>Things in 2021 Release 3 You May Have Missed Because You Might Not Have Wanted to Read All 220+ Items in the Release Notes</title>
		<link>https://blog.xojo.com/2021/11/18/things-in-2021-release-3-you-may-have-missed-because-you-might-not-have-wanted-to-read-all-220-items-in-the-release-notes/</link>
		
		<dc:creator><![CDATA[Paul Lefebvre]]></dc:creator>
		<pubDate>Thu, 18 Nov 2021 14:00:00 +0000</pubDate>
				<category><![CDATA[Cross-Platform]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Auto-Complete]]></category>
		<category><![CDATA[Code Editor]]></category>
		<category><![CDATA[Declares]]></category>
		<category><![CDATA[Unicode]]></category>
		<category><![CDATA[Windows ARM]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=9608</guid>

					<description><![CDATA[For those of you that don't consider reading through over 220 items as fun as I do, here are a few things I thought I would highlight, in no particular order...]]></description>
										<content:encoded><![CDATA[
<p>Because we make <a href="https://documentation.xojo.com/resources/release_notes/2021r3.html">so many fixes and changes</a> (and even add a few new things) in each Xojo release, it can be daunting to read through the entire <a href="https://documentation.xojo.com/resources/release_notes/2021r3.html">release notes</a>. I encourage you to do so, though, because it&#8217;s fun!</p>



<p>For those of you that don&#8217;t consider reading through over 220 items as fun as I do, here are a few things I thought I would highlight, in no particular order.</p>



<ul class="wp-block-list"><li><strong>Desktop projects now save icon resources as compressed PNGs.</strong> This can greatly reduce binary/xml project file size and also reduce the .xojoresources file size in text projects. In the case of the Eddie&#8217;s Electronics sample project, the binary project dropped from 11MB to 780K, the XML project from 22MB to 1.1MB and the .xojoresources file from 11MB to 388K.</li></ul>



<p></p>



<ul class="wp-block-list"><li>Need to iterate through a String&#8217;s characters in a completely unicode-friendly way (including emojis)? Rather than using the <a href="https://documentation.xojo.com/api/data_types/string.html#string-characters">String.Characters</a> iterator, <strong>use the new <a href="https://documentation.xojo.com/api/text/str.htmling.Codepoints">String.Codepoints</a> iterator which returns one value for each unicode scalar</strong>.</li></ul>



<p></p>



<ul class="wp-block-list"><li> <strong>You can now install Xojo on Windows ARM 64-bit.</strong> Xojo itself remains an Intel x86-64 binary, but Windows ARM has a translation system built-in that will allow Xojo to run. This should allow those of you using ARM Windows in a VM on an Apple Silicon Mac to use Xojo there. If you&#8217;re interested in native Xojo support for Windows ARM, subscribe to <a href="http://&lt;feedback://showreport?report_id=62672&gt;">Feedback Case 62672</a> so you&#8217;ll be notified of updates.</li></ul>



<p></p>



<ul class="wp-block-list"><li><strong>Auto-complete continues to get smarter and faster</strong>. It can&#8217;t quite write your code for you, but now it does a better job of substituting text and offering suggestions, among other things.</li></ul>



<p></p>



<ul class="wp-block-list"><li><strong>The Code Editor has more improvements</strong>, particularly in the area of code folding. Another improvement is that you can use Go To Location to jump to a specific line in the code using “#50” (for example) in addition to the previously allowed &#8220;50&#8221;.</li></ul>



<p></p>



<ul class="wp-block-list"><li>For use with Declares, there is <strong>now an OSHandle class</strong> that can handle either an Integer or a Ptr.</li></ul>



<p></p>



<ul class="wp-block-list"><li>And although we mentioned it in <a href="https://blog.xojo.com/2021/09/20/the-return-of-building-for-macos-from-windows-and-linux/">another blog post</a>, I&#8217;d still like to remind people that you can again <strong>build your Mac apps from Windows and Linux</strong>. Improvements in the open-source linker project used by Xojo allowed us to bring this feature back. Of course, please continue to test your Mac apps on an actual Mac before you ship them.</li></ul>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Xojo Code Editor: Auto-complete and Scope</title>
		<link>https://blog.xojo.com/2017/12/18/auto-complete-and-scope/</link>
		
		<dc:creator><![CDATA[Paul Lefebvre]]></dc:creator>
		<pubDate>Mon, 18 Dec 2017 10:30:39 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Auto-Complete]]></category>
		<category><![CDATA[Code Editor]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=3540</guid>

					<description><![CDATA[The Xojo Code Editor has a wonderful auto-complete feature that makes typing your code and discovering variables, methods and properties much easier. To activate auto-complete press the tab key after you have started typing some code.]]></description>
										<content:encoded><![CDATA[<p>The Xojo Code Editor has a wonderful auto-complete feature that makes typing your code and discovering variables, methods and properties much easier. To activate auto-complete press the tab key after you have started typing some code.</p>
<p><span id="more-3540"></span></p>
<p>When dealing with how variables are shown by auto-complete, you first need to understand the concept of a variable&#8217;s &#8216;visibility&#8217; or scope.</p>
<p>When a variable is declared, its scope is limited to the block of code in which it is declared. For example, add a method with this code:</p>
<pre>Dim myVariable As Integer
For myVariable = 0 To 9
  // Do something
  MsgBox(myVariable.ToText)
Next</pre>
<p>In the above code the scope of the variable <em>myVariable</em> is the entire method. This includes being within the &#8216;For&#8230;Next&#8217; loop.</p>
<p>Now consider this code in a method:</p>
<pre>For myVariable As Integer = 0 To 9
  // Do something
  MsgBox(myVariable.ToText)
Next
// myVariable cannot be used here and will not auto-complete</pre>
<p>The block of code within which <em>myVariable</em> is declared is the &#8216;For&#8230;Next&#8217; loop.  The scope starts at &#8216;For&#8217; and ends at &#8216;Next&#8217;. Because of this limiting scope <em>myVariable</em> does not auto-complete outside the loop and if you type it manually in code like this you will get a compile error for that line that says &#8220;This item does not exist&#8221;:</p>
<pre>For myVariable As Integer = 0 To 9
  // Do something
  MsgBox(myVariable.ToText)
Next
myVariable = 10 // compile error here</pre>
<p><em>(Thanks to <a href="mailto:robin@xojo.com">Robin Lauryssen-Mitchell</a> for this tip.)</em></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
