<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"  xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:access="http://www.bloglines.com/about/specs/fac-1.0">
  <access:restriction relationship="allow" />
  <channel>
    <title>Wikispaces : Liberty BASIC Programmer&#039;s Encyc - items matching description</title>
    <link>https://lbpe.wikispaces.com/space/view</link>
    <description>Filtered items at Wikispaces : Liberty BASIC Programmer&#039;s Encyc</description>
    
    <webMaster>help@wikispaces.com (Wikispaces)</webMaster>
    <generator>https://www.wikispaces.com/</generator>
    <ttl>60</ttl>
    <atom:link href="https://lbpe.wikispaces.com/space/xmlo?v=rss_2_0" rel="self" type="application/rss+xml" />
    <image>
      <title>Wikispaces : Liberty BASIC Programmer&#039;s Encyc - items matching description</title>
      <url>https://www.wikispaces.com/i/l.png</url>
      <link>https://lbpe.wikispaces.com/space/view</link>
      <width>140</width>
      <height>48</height>
      <description>Wikispaces</description>
    </image>

    <item>
      <title>Bugs and Gotchas</title>
      <link>https://lbpe.wikispaces.com/Bugs+and+Gotchas</link>
      <dc:creator>RodBird</dc:creator>
      <guid isPermaLink="true">https://lbpe.wikispaces.com/Bugs+and+Gotchas</guid>
      <comments>https://lbpe.wikispaces.com/page/messages/Bugs+and+Gotchas</comments>
      <pubDate>Fri, 30 Oct 2015 18:41:50 GMT</pubDate>
      <description>#=Bugs and Gotchas= &lt;br /&gt;
&lt;em&gt;Author - The Community&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;hr /&gt;
This is a list of known bugs, quirks and gotchas that folks new to Liberty BASIC have discovered. Each is listed beside the command it is associated with. A bug is something Liberty is getting wrong, a gotcha is something the programmer should not be doing and the rest is for info, as each BASIC language has little quirks of its own.&lt;br /&gt;
&lt;br /&gt;
If you are new to Liberty BASIC and you have not yet found or read the &lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/FastFAQ&quot;&gt;Fast FAQ&lt;/a&gt; then please do so. The &lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/home&quot;&gt;LBPE&lt;/a&gt; is your other searchable font of knowledge about all things Liberty.&lt;br /&gt;
&lt;br /&gt;
If you are still perplexed then there are many people to chat to over on the &lt;a class=&quot;wiki_link_ext&quot; href=&quot;http://libertybasic.conforums.com/&quot; rel=&quot;nofollow&quot;&gt;Conforum&lt;/a&gt; board.&lt;br /&gt;
&lt;br /&gt;


&lt;table class=&quot;wiki_table&quot;&gt;
    &lt;tr&gt;
        &lt;td&gt;The command&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Description of Bug Gotcha or Info&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Link to more info&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;-&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Unary minus is not supported, use 0-x&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Unary%20minus%20not%20supported&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;=&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Comparing two floats x.x y.y is problematic&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Incorrect%20floating%20point%20value&quot;&gt;Gotcha&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;!insert&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Texteditor !insert command requires a locally scoped string&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/TEXTEDITOR%20%21insert&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;%&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;If this appears in front of a using() number its too big to fit&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/FastFAQ#Fast%20FAQ:-Using():&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;*&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;A missing * in a maths statement is not caught, always insert *&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Missing%20%2A%20not%20caught%20in%20expressions&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;,&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Missing , are sometimes not reported, check , are inserted&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Missing%20commas%20are%20not%20reported&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Beep&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Beep is not supported by modern BIOS, use Playwave instead&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/BEEP&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Box graphics&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Box draws one pixel short&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Line%20and%20Box%20draw%20one%20pixel%20short&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Branch labels&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;A [Branch Label] should not head up another [Branch Label]&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Branch%20Labels&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Button&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Button anchor values result in misplaced buttons&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Button%20anchor%20misplacement&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Calldll&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Calldll return types USHORT and WORD are broken&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/CALLDLL%20return%20types%20%27ushort%27%20and%20%27word%27%20are%20broken&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Close&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Random file&#039;s close command cannot use a Handle$ variable&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Handle%20variables%20do%20not%20work%20with%20RANDOM%20files&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Data&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;If you precede the data statement with line numbers it will fail&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/DATA&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Error message&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Attempted to kill non-existant file&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/FastFAQ#Fast%20FAQ:-Liberty%20Runtime%20Errors:-Attempted%20to%20kill%20non-existant%20file&quot;&gt;Gotcha&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Error message&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Stack Overflow&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/FastFAQ#Fast%20FAQ:-Liberty%20Runtime%20Errors:-Stack%20Overflow&quot;&gt;Gotcha&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Error message&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Collection is empty&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/FastFAQ#Fast%20FAQ:-Liberty%20Runtime%20Errors:-Collection%20is%20empty&quot;&gt;Gotcha&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Error message&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Argument must be a collection&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/FastFAQ#Fast%20FAQ:-Liberty%20Runtime%20Errors:-Argument%20must%20be%20a%20collection&quot;&gt;Gotcha&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Error message&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Index (n) is outside collection bounds&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/FastFAQ#Fast%20FAQ:-Liberty%20Runtime%20Errors:-Index%20(nnn)%20is%20outside%20collection%20bounds&quot;&gt;Gotcha&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Error message&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Invalid Branch Label [xyz]&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/FastFAQ#Fast%20FAQ:-Liberty%20Runtime%20Errors:-Invalid%20branch%20label%20%5Bxyz%5D&quot;&gt;Gotcha&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Error message&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Float invalid op&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/FastFAQ#Fast%20FAQ:-Liberty%20Runtime%20Errors:-Float%20invalid%20op&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Error message&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;System Primitive Failed&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/FastFAQ#Fast%20FAQ:-Liberty%20Runtime%20Errors:-System%20Primitive%20Failed&quot;&gt;Gotcha&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Error message&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;File is literally invisible&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/FastFAQ#Fast%20FAQ:-Liberty%20Runtime%20Errors:-Open%20file,%20the%20file%20is%20literally%20invisible&quot;&gt;Gotcha&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Error message&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Error Opening file&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/FastFAQ#Fast%20FAQ:-Liberty%20Runtime%20Errors:-Open%20file%20gives%20Error%20Opening%20File&quot;&gt;Gotcha&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Error message&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;File System Access Denied&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/FastFAQ#Fast%20FAQ:-Liberty%20Runtime%20Errors:-Open%20file%20gives%20File%20System%20Access%20Denied&quot;&gt;Gotcha&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Error message&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Problem creating file&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/FastFAQ#Fast%20FAQ:-Liberty%20Runtime%20Errors:-Creating%20an%20.exe%20gives%20Problem%20Creating%20File&quot;&gt;Gotcha&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Error message&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;OS Error cannot find file&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/FastFAQ#Fast%20FAQ:-Liberty%20Runtime%20Errors:-Creating%20an%20.exe%20gives%20OS%20Error%20cannot%20find%20file&quot;&gt;Gotcha&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Error message&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;String can&#039;t hold string&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/FastFAQ#Fast%20FAQ:-Liberty%20Runtime%20Errors:-String%20can&#039;t%20hold%20string&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Error message&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;A non-continuable protection violation has occurred&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/FastFAQ#Fast%20FAQ:-Liberty%20Runtime%20Errors:-Protection%20violation&quot;&gt;Gotcha&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Error message&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;IsEmpty&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/FastFAQ#Fast%20FAQ:-Liberty%20Runtime%20Errors:-IsEmpty&quot;&gt;Gotcha&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Field&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Random file&#039;s field command cannot use a Handle$ variable&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Handle%20variables%20do%20not%20work%20with%20RANDOM%20files&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;File Association&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Associating liberty.exe to .bas files needs manual fix on upgrade&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/File%20Association%20.bas&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;For Next&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Incorrectly allows a string variable as a loop counter&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/FOR-allows%20string%20index%20variable&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;For Next&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Do not use a global variable as a loop counter&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/FOR-global%20loop%20counter&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;For Next&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Don&#039;t jump out a for next loop, leave using exit for&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Jumping%20out%20of%20a%20nested%20FOR%20loop&quot;&gt;Gotcha&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;For Next&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;A STRUCT variable cannot be used as a loop counter&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Structure%20member%20cannot%20be%20used%20as%20FOR%20variable&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Function&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Arrays are global by default and available inside functions&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Arrays%20Not%20Passed%20to%20Subs&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Function&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Global variables need not be passed to functions&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/FUNCTION%20with%20GLOBAL%20parameter&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Get&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Random file&#039;s get command cannot use a Handle$ variable&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Handle%20variables%20do%20not%20work%20with%20RANDOM%20files&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Handle$&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Handle$ variables do not work with RAF files&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Handle%20variables%20do%20not%20work%20with%20RANDOM%20files&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Horizscrollbar&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Large graphics need special preparation&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Scrollbars-Graphics-Distorted&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;IDE&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;IDE-editor - Undo feature does not work + some quirks&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Environment&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Inkey$&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;The help file reference listing Virtual Key Codes is erroneous&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/HELPFILE-virtual%20key%20codes&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Input var$;val&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Input cannot use a var$ as a prompt as per the help file&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/INPUT-variable%20as%20prompt&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Inputcsv&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Does not deal with embeded quotes correctly&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/INPUTCSV%20does%20not%20accept%20embedded%20quotes&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Line graphics&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Line draws one pixel short&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Line%20and%20Box%20draw%20one%20pixel%20short&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Listbox&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Changes to font size after creation breaks scroll range&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Listbox%20horizontal%20scroll%20range&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;lof()&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Lof() function reports incorrect files size for files &amp;gt; 4Gb&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/lof%28%29%20reports%20wrong%20file%20size%20for%20large%20files&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Mainwin&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Mainwin permanently alters width, reset to 80 using preferences&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/MAINWIN%20changes%20preferences&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Mid$()&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Mid$() reads a string fragment, it cannot assign a string fragment&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/MID-can%20not%20assign%20value&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;middleButtonMove&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;middleButtonMove event is broken&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/middleButtonMove%20event&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Pie graphics&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Pie and Piefilled drawing distorted&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Pie%20and%20Piefilled%20drawing%20distorted&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Piefilled graphics&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Pie and Piefilled drawing distorted&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Pie%20and%20Piefilled%20drawing%20distorted&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Printerdialog&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Printerdialog is broken an API alternative is available&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/PRINTERDIALOG-broken%20for%20XP%20and%20higher&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Prompt&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;If you use prompt when a timer is running Liberty will ignore it&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Timer%20and%20Prompt%20conflict&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Put&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Random file&#039;s put command cannot use a Handle$ variable&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Handle%20variables%20do%20not%20work%20with%20RANDOM%20files&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Put&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Attempting to write to record 0 erronously creates a 4Gb file&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/PUT%20%E2%80%93%20attempt%20to%20write%20record%200%20writes%204Gb%20file&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Redim&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Redim acts on an existing array a(x,y) x,y cannot change&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Redim%20%20fails%20to%20redimension%20an%20array&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Rnd(0)&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Rnd(0) has a slight bias, improved routines are available&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Improved%20RND%28%29%20function&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Sort&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Sort a(),r,c,col if r is less than c sorting breaks when col is &amp;gt;r&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Sort&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Sort&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Sorting is not in ASCII order it is dictionary order but flawed&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/SORT-fails%20to%20provide%20dictionary%20order&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;STRUCT&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;STRUCT keyword is case sensitive&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/STRUCT-keyword%20is%20case%20sensitive&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;STRUCT double&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;STRUCT member of type double crashes if you assign and integer&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/STRUCT-DOUBLE%20crashes%20then%20assigning%20integer&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;STRUCT Variable&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;STRUCT variable cannot be used as a For loop counter&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Structure%20member%20cannot%20be%20used%20as%20FOR%20variable&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Sub&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Arrays are global by default and available inside Subs&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Arrays%20Not%20Passed%20to%20Subs&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Sub&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Global variables need not be passed to Subs&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/FUNCTION%20with%20GLOBAL%20parameter&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Texteditor&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;The !insert command must use a locally scoped string&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/TEXTEDITOR%20%21insert&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Texteditor&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;The undo feature is broken&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/TEXTEDITOR%20-%20Undo%20feature%20doesn%27t%20work&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Time$()&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Time$() arguments are case sensitive, lower case&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/TIME-arguments%20are%20case%20sensitive&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Timer&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;If you use prompt when a timer is running Liberty will ignore it&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Timer%20and%20Prompt%20conflict&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Timer&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;If a timer is set you must consider where the scope is when it fires&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/TIMER-sub%20as%20event%20handler&quot;&gt;Gotcha&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Timer&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Timer events repeat, you must turn them off asap&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a href=&quot;http://justbasic.wikispaces.com/BB___TIMER&quot;&gt;Tutorial needed&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Timer&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Only a timer encased entirely within a sub will work&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/TIMER-sub%20as%20event%20handler&quot;&gt;Gotcha&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Trapclose&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Trapclose is broken for windows of type text&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/TRAPCLOSE%20does%20not%20work%20correctly%20in%20text%20window&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Using&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Using is accurate to 16 digits, beyond that is garbage&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/USING%20loses%20accuracy%20after%2016%20digits&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Using()&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;If a % appears the number is too big to fit in the format&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;https://lbpe.wikispaces.com/FastFAQ#Fast%20FAQ:-Using():&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Vertscrollbar&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Large graphics need special preparation&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/Scrollbars-Graphics-Distorted&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Virtual Key Code&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;The help file reference listing Virtual Key Codes is erroneous&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/HELPFILE-virtual%20key%20codes&quot;&gt;Info&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Window type Dialog&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Dialog windows may position incorrectly if DPI is not 96&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/DIALOG-wrong%20position&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Window type Text&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;Trapclose is broken for windows of type text&lt;br /&gt;
&lt;/td&gt;
        &lt;td&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;http://libertybasicbugs.wikispaces.com/TRAPCLOSE%20does%20not%20work%20correctly%20in%20text%20window&quot;&gt;Bug&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;

&lt;br /&gt;
&lt;hr /&gt;
</description>
          </item>
    <item>
      <title>FAQs</title>
      <link>https://lbpe.wikispaces.com/FAQs</link>
      <dc:creator>Alyce</dc:creator>
      <guid isPermaLink="true">https://lbpe.wikispaces.com/FAQs</guid>
      <comments>https://lbpe.wikispaces.com/page/messages/FAQs</comments>
      <pubDate>Thu, 29 Oct 2015 15:32:55 GMT</pubDate>
      <description>&lt;!-- ws:start:WikiTextHeadingRule:0:&amp;lt;h1&amp;gt; --&gt;&lt;h1 id=&quot;toc0&quot;&gt;&lt;a name=&quot;Frequently Asked Questions&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:0 --&gt;Frequently Asked Questions&lt;/h1&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextTocRule:2:&amp;lt;img id=&amp;quot;wikitext@@toc@@flat&amp;quot; class=&amp;quot;WikiMedia WikiMediaTocFlat&amp;quot; title=&amp;quot;Table of Contents&amp;quot; src=&amp;quot;/site/embedthumbnail/toc/flat?w=100&amp;amp;h=16&amp;quot;/&amp;gt; --&gt;&lt;!-- ws:end:WikiTextTocRule:2 --&gt;&lt;!-- ws:start:WikiTextTocRule:3: --&gt;&lt;a href=&quot;#Frequently Asked Questions&quot;&gt;Frequently Asked Questions&lt;/a&gt;&lt;!-- ws:end:WikiTextTocRule:3 --&gt;&lt;!-- ws:start:WikiTextTocRule:4: --&gt;
&lt;!-- ws:end:WikiTextTocRule:4 --&gt;&lt;hr /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;/Bugs%20and%20Gotchas&quot;&gt;Bugs and Gotchas&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a class=&quot;wiki_link&quot; href=&quot;/FastFAQ&quot;&gt;FastFAQ&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;hr /&gt;
&lt;!-- ws:start:WikiTextTocRule:5:&amp;lt;img id=&amp;quot;wikitext@@toc@@flat&amp;quot; class=&amp;quot;WikiMedia WikiMediaTocFlat&amp;quot; title=&amp;quot;Table of Contents&amp;quot; src=&amp;quot;/site/embedthumbnail/toc/flat?w=100&amp;amp;h=16&amp;quot;/&amp;gt; --&gt;&lt;!-- ws:end:WikiTextTocRule:5 --&gt;&lt;!-- ws:start:WikiTextTocRule:6: --&gt;&lt;a href=&quot;#Frequently Asked Questions&quot;&gt;Frequently Asked Questions&lt;/a&gt;&lt;!-- ws:end:WikiTextTocRule:6 --&gt;&lt;!-- ws:start:WikiTextTocRule:7: --&gt;
&lt;!-- ws:end:WikiTextTocRule:7 --&gt;</description>
          </item>
    <item>
      <title>FastFAQ</title>
      <link>https://lbpe.wikispaces.com/FastFAQ</link>
      <dc:creator>RodBird</dc:creator>
      <guid isPermaLink="true">https://lbpe.wikispaces.com/FastFAQ</guid>
      <comments>https://lbpe.wikispaces.com/page/messages/FastFAQ</comments>
      <pubDate>Fri, 30 Oct 2015 09:26:52 GMT</pubDate>
      <description>&lt;!-- ws:start:WikiTextTocRule:62:&amp;lt;img id=&amp;quot;wikitext@@toc@@normal&amp;quot; class=&amp;quot;WikiMedia WikiMediaToc&amp;quot; title=&amp;quot;Table of Contents&amp;quot; src=&amp;quot;/site/embedthumbnail/toc/normal?w=225&amp;amp;h=100&amp;quot;/&amp;gt; --&gt;&lt;div id=&quot;toc&quot;&gt;&lt;h1 class=&quot;nopad&quot;&gt;Table of Contents&lt;/h1&gt;&lt;!-- ws:end:WikiTextTocRule:62 --&gt;&lt;!-- ws:start:WikiTextTocRule:63: --&gt;&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:&quot;&gt;Fast FAQ:&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:63 --&gt;&lt;!-- ws:start:WikiTextTocRule:64: --&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Windows Environment:&quot;&gt;Windows Environment:&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:64 --&gt;&lt;!-- ws:start:WikiTextTocRule:65: --&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Tutorial and Help&quot;&gt;Tutorial and Help&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:65 --&gt;&lt;!-- ws:start:WikiTextTocRule:66: --&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Write Run Compile Execute:&quot;&gt;Write Run Compile Execute:&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:66 --&gt;&lt;!-- ws:start:WikiTextTocRule:67: --&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Debug:&quot;&gt;Debug:&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:67 --&gt;&lt;!-- ws:start:WikiTextTocRule:68: --&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Window Types:&quot;&gt;Window Types:&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:68 --&gt;&lt;!-- ws:start:WikiTextTocRule:69: --&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Looping Stop Break Kill:&quot;&gt;Looping Stop Break Kill:&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:69 --&gt;&lt;!-- ws:start:WikiTextTocRule:70: --&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-GUI program flow:&quot;&gt;GUI program flow:&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:70 --&gt;&lt;!-- ws:start:WikiTextTocRule:71: --&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Include:&quot;&gt;Include:&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:71 --&gt;&lt;!-- ws:start:WikiTextTocRule:72: --&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Typing &amp;amp; Dimming variables:&quot;&gt;Typing &amp;amp; Dimming variables:&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:72 --&gt;&lt;!-- ws:start:WikiTextTocRule:73: --&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Graphics:&quot;&gt;Graphics:&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:73 --&gt;&lt;!-- ws:start:WikiTextTocRule:74: --&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Printing:&quot;&gt;Printing:&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:74 --&gt;&lt;!-- ws:start:WikiTextTocRule:75: --&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Sorting:&quot;&gt;Sorting:&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:75 --&gt;&lt;!-- ws:start:WikiTextTocRule:76: --&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Using():&quot;&gt;Using():&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:76 --&gt;&lt;!-- ws:start:WikiTextTocRule:77: --&gt;&lt;div style=&quot;margin-left: 2em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Liberty Runtime Errors:&quot;&gt;Liberty Runtime Errors:&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:77 --&gt;&lt;!-- ws:start:WikiTextTocRule:78: --&gt;&lt;div style=&quot;margin-left: 3em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Liberty Runtime Errors:-Creating an .exe gives OS Error cannot find file&quot;&gt;Creating an .exe gives OS Error cannot find file&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:78 --&gt;&lt;!-- ws:start:WikiTextTocRule:79: --&gt;&lt;div style=&quot;margin-left: 3em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Liberty Runtime Errors:-Creating an .exe gives Problem Creating File&quot;&gt;Creating an .exe gives Problem Creating File&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:79 --&gt;&lt;!-- ws:start:WikiTextTocRule:80: --&gt;&lt;div style=&quot;margin-left: 3em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Liberty Runtime Errors:-Open file gives File System Access Denied&quot;&gt;Open file gives File System Access Denied&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:80 --&gt;&lt;!-- ws:start:WikiTextTocRule:81: --&gt;&lt;div style=&quot;margin-left: 3em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Liberty Runtime Errors:-Open file gives Error Opening File&quot;&gt;Open file gives Error Opening File&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:81 --&gt;&lt;!-- ws:start:WikiTextTocRule:82: --&gt;&lt;div style=&quot;margin-left: 3em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Liberty Runtime Errors:-Open file, the file is literally invisible&quot;&gt;Open file, the file is literally invisible&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:82 --&gt;&lt;!-- ws:start:WikiTextTocRule:83: --&gt;&lt;div style=&quot;margin-left: 3em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Liberty Runtime Errors:-Attempted to kill non-existant file&quot;&gt;Attempted to kill non-existant file&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:83 --&gt;&lt;!-- ws:start:WikiTextTocRule:84: --&gt;&lt;div style=&quot;margin-left: 3em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Liberty Runtime Errors:-Stack Overflow&quot;&gt;Stack Overflow&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:84 --&gt;&lt;!-- ws:start:WikiTextTocRule:85: --&gt;&lt;div style=&quot;margin-left: 3em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Liberty Runtime Errors:-System Primitive Failed&quot;&gt;System Primitive Failed&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:85 --&gt;&lt;!-- ws:start:WikiTextTocRule:86: --&gt;&lt;div style=&quot;margin-left: 3em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Liberty Runtime Errors:-Float invalid op&quot;&gt;Float invalid op&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:86 --&gt;&lt;!-- ws:start:WikiTextTocRule:87: --&gt;&lt;div style=&quot;margin-left: 3em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Liberty Runtime Errors:-Invalid branch label [xyz]&quot;&gt;Invalid branch label [xyz]&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:87 --&gt;&lt;!-- ws:start:WikiTextTocRule:88: --&gt;&lt;div style=&quot;margin-left: 3em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Liberty Runtime Errors:-Index (nnn) is outside collection bounds&quot;&gt;Index (nnn) is outside collection bounds&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:88 --&gt;&lt;!-- ws:start:WikiTextTocRule:89: --&gt;&lt;div style=&quot;margin-left: 3em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Liberty Runtime Errors:-Argument must be a collection&quot;&gt;Argument must be a collection&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:89 --&gt;&lt;!-- ws:start:WikiTextTocRule:90: --&gt;&lt;div style=&quot;margin-left: 3em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Liberty Runtime Errors:-Collection is empty&quot;&gt;Collection is empty&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:90 --&gt;&lt;!-- ws:start:WikiTextTocRule:91: --&gt;&lt;div style=&quot;margin-left: 3em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Liberty Runtime Errors:-IsEmpty&quot;&gt;IsEmpty&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:91 --&gt;&lt;!-- ws:start:WikiTextTocRule:92: --&gt;&lt;div style=&quot;margin-left: 3em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Liberty Runtime Errors:-Protection violation&quot;&gt;Protection violation&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:92 --&gt;&lt;!-- ws:start:WikiTextTocRule:93: --&gt;&lt;div style=&quot;margin-left: 3em;&quot;&gt;&lt;a href=&quot;#Fast FAQ:-Liberty Runtime Errors:-String can&#039;t hold string&quot;&gt;String can&#039;t hold string&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:93 --&gt;&lt;!-- ws:start:WikiTextTocRule:94: --&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:94 --&gt;&lt;span style=&quot;display: block; width: 72%;&quot;&gt;&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:0:&amp;lt;h1&amp;gt; --&gt;&lt;h1 id=&quot;toc0&quot;&gt;&lt;a name=&quot;Fast FAQ:&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:0 --&gt;Fast FAQ:&lt;/h1&gt;
 by &lt;!-- ws:start:WikiTextUserlinkRule:00:[[user:RodBird]] --&gt;&lt;span class=&quot;membersnap&quot;&gt;- &lt;a class=&quot;userLink&quot; href=&quot;https://www.wikispaces.com/user/view/RodBird&quot; style=&quot;outline: none;&quot;&gt;&lt;img src=&quot;https://www.wikispaces.com/user/pic/RodBird-lg.jpg&quot; width=&quot;16&quot; height=&quot;16&quot; alt=&quot;RodBird&quot; class=&quot;userPicture&quot; /&gt;&lt;/a&gt; &lt;a class=&quot;userLink&quot; href=&quot;https://www.wikispaces.com/user/view/RodBird&quot; style=&quot;outline: none;&quot;&gt;RodBird&lt;/a&gt;&lt;/span&gt;&lt;!-- ws:end:WikiTextUserlinkRule:00 --&gt;&lt;br /&gt;
&lt;br /&gt;
The following issues have been discussed by newcomers to the boards. Even if you have programming experience have a read, something will be relevant in the near future and little bells might ring when you feel perplexed.&lt;br /&gt;
&lt;br /&gt;
First a few words about the environment you are working in, then some general concepts about Liberty BASIC and finally a discussion about some of the more cryptic runtime errors.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:2:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id=&quot;toc1&quot;&gt;&lt;a name=&quot;Fast FAQ:-Windows Environment:&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:2 --&gt;Windows Environment:&lt;/h2&gt;
 Liberty BASIC will by default install itself to the Program Files (x86) directory, usually C:\Program Files (x86). This is the protected Windows directory for 32Bit programs. You will not normally be allowed to save or write anything to this directory, it is locked. Support files and new .bas files are by default written to your appdata directory. Usually C:\Users\Yourname\AppData\Roaming\Liberty BASIC v4.04. Here you will find all of the media, bmp and .bas examples. Windows has a special name for this folder, it is %APPDATA%, this is a Windows environment variable name. Key %APPDATA% into any file dialog will give you quick access to the location of the default Liberty BASIC v4.04 folder.&lt;br /&gt;
&lt;br /&gt;
The normal way to interact with Liberty BASIC is to open the Integrated Development Environment (IDE) and then select a .bas program to run or edit. Under the Preferences menu you can set it so that Liberty IDE always opens with the last file edited in view. Or, you can use the File menu to open another file.&lt;br /&gt;
&lt;br /&gt;
You can set your system up to open any .bas file by clicking on it. To do this right click on any .bas file, choose &amp;quot;Open with&amp;quot; and then &amp;quot;Choose default program&amp;quot;. Now navigate to and choose C:\Program Files (x86)\Liberty BASIC v4.04\liberty.exe. Click on &amp;quot;Always use this file&amp;quot;. Now, anytime you click on a .bas program, Liberty BASIC&#039;s IDE will open with the .bas loaded ready to run or edit.&lt;br /&gt;
&lt;br /&gt;
Its also a good idea to establish a project area like C:\MyBasicFiles and store projects in sub directories like C:\MyBasicFiles\ProjectName. This need not be in the %APPDATA% folder C:\MyBasic is just fine.&lt;br /&gt;
&lt;br /&gt;
You need to know that paths like C:\MyBasicFiles\Project\Bmp can be hard coded or relative. If they are hard coded you must specify exactly where they are and quote the full path. Don&#039;t do this. It is much easier to use relative paths or none at all. If you have a bmp file you may keep it in the \Project directory in which case you just use the bmp&#039;s name &amp;quot;my.bmp&amp;quot; to load it. If you wish to keep things tidy create a sub directory inside your \Project directory like \Project\Bmp put the bmp file in this subdirectory. In your program use the relative path &amp;quot;Bmp\my.bmp&amp;quot; This way you can move or distribute the code and it will work as the directory structure remains intact and cares not where it resides. For example a user or your friend might put the \Project directory in C:\Temp which is not the same as C:\MyBasicFiles.&lt;br /&gt;
&lt;br /&gt;
Final point about the Windows environment. When you start Liberty BASIC the IDE will open, be sure you can see the whole window. There is a status bar at the foot of the window that reports errors and offers help that is often hidden behind the Windows task bar. Resize your window, especially when debugging, so that you can see this status bar.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:4:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id=&quot;toc2&quot;&gt;&lt;a name=&quot;Fast FAQ:-Tutorial and Help&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:4 --&gt;Tutorial and Help&lt;/h2&gt;
 Liberty BASIC v4.04 ships with interactive tutorials in the form of .lsn files, here you can read about and run code examples. To start the tutorial search for the .lsn file in %APPDATA%. Don&#039;t try to run it from the Help menu as it will fail.&lt;br /&gt;
&lt;br /&gt;
The main help file ships as an HTML file that opens in your default browser. You can improve on this by using some of the search aids that Liberty coders have created. You can also create a .chm file which is more interactive and easier to navigate. Read to the end of this FAQ and then come back and click this link. &lt;!-- ws:start:WikiTextUrlRule:236:http://alycesrestaurant.com/lb4chm.htm --&gt;&lt;a class=&quot;wiki_link_ext&quot; href=&quot;http://alycesrestaurant.com/lb4chm.htm&quot; rel=&quot;nofollow&quot;&gt;http://alycesrestaurant.com/lb4chm.htm&lt;/a&gt;&lt;!-- ws:end:WikiTextUrlRule:236 --&gt;&lt;br /&gt;
&lt;br /&gt;
Also searching this forum and Google often turns up interesting solutions to coding puzzles.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:6:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id=&quot;toc3&quot;&gt;&lt;a name=&quot;Fast FAQ:-Write Run Compile Execute:&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:6 --&gt;Write Run Compile Execute:&lt;/h2&gt;
 Liberty code is drafted in the IDE and stored as a .bas file. When you click on Run or Debug, your code is first compiled, any coding errors cause the compiler to stop and report in the status bar. When error free the compiled code goes to runtime and your instructions are executed and appear on screen in whatever window type you have specified. So, running a program is a two step process, seamless, but still two steps. Optionally a .tkn file can be created; it is a precompiled program that saves a little time when starting up. The .tkn hides your code from prying eyes but this is not its intended purpose, its simply a precompiled version of your code that will start instantly.&lt;br /&gt;
&lt;br /&gt;
When your program is executing and comes across an error this is called a runtime error. you will get some form of error report or notice popup, it may simply point you at the error.log. You can look at the error.log by clicking run then selecting error.log. Be aware that the file may be large and that the errors are appended so you need to scroll to the bottom of the file. You may delete the contents or the file, Liberty will reinstate it. The error.log is complex, share it on the forums with the offending code if you want help.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:8:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id=&quot;toc4&quot;&gt;&lt;a name=&quot;Fast FAQ:-Debug:&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:8 --&gt;Debug:&lt;/h2&gt;
 So the compiler did some error correction for you but now that you are executing the .bas file the Ladybug icon is your best friend. Go on, click it. Spend as much time with the debugger as the IDE. Click on the &amp;gt;&amp;gt;&amp;gt; animate icon and watch your program run line by line. If it gets a runtime error it stops on the offending line, reports in the status bar and you can see the content of all your variables at that moment in time. You may set break points by clicking on the left side bar of the debugger window.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:10:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id=&quot;toc5&quot;&gt;&lt;a name=&quot;Fast FAQ:-Window Types:&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:10 --&gt;Window Types:&lt;/h2&gt;
 Liberty displays everything on screen in a variety of window types. The first window type you will encounter is Liberty&#039;s mainwin. This is the default window type and is essentially a testing and debugging window. It always opens unless you switch it off with nomainwin, as soon as you are competent you will be using other window types and once debugged you will switch off the mainwin.&lt;br /&gt;
&lt;br /&gt;
Mainwin is great for your first steps into programming and you can write quite complex programs in this environment, but it has limits. It cannot produce a GUI style interface. It&#039;s styled as a traditional DOS console and cannot produce colored text. Neither does it support the traditional inkey$() statement, only input$(1). The essential difference is that program flow stops and waits for input.&lt;br /&gt;
&lt;br /&gt;
You will use mainwin for development and debugging and a standard window for almost everything else. A standard window provides GUI controls like listboxes, graphicboxes, buttons and checkboxes. There are specialized windows for graphics, text and dialogs. Be aware they exist and take time to choose the correct window type for the task in hand, but have a good reason to move away from the standard window type.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:12:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id=&quot;toc6&quot;&gt;&lt;a name=&quot;Fast FAQ:-Looping Stop Break Kill:&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:12 --&gt;Looping Stop Break Kill:&lt;/h2&gt;
 Endless loops are an endearing feature of all programming languages. A simple loop like WHILE WEND can consume all of the processor cycles that Liberty can get hold of and if you don&#039;t have dual core your PC will freeze as well as the program.&lt;br /&gt;
&lt;br /&gt;
If you are in trouble press Ctrl+Break Then navigate to the IDE and from the Menu select Run, Kill BASIC Programs. The program may persist in the kill list even though it has been killed, this is because you opened a window but it did not get closed. It will get corrected when you restart Liberty.&lt;br /&gt;
&lt;br /&gt;
Do put SCAN inside loops. Scan is a very important command that causes Liberty to check for mouse or keyboard input. The trapclose event for example will never be seen if you don&#039;t SCAN inside a loop.&lt;br /&gt;
&lt;br /&gt;
Don&#039;t code delay loops like FOR n=1 TO 50000 : NEXT. Liberty operates in a multi-threaded environment where processing cycles are shared. A delay loop like that hogs the processor and ignores all input and events till it is done. Use TIMER if you need a pause, or better still simply WAIT for the next user input event.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:14:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id=&quot;toc7&quot;&gt;&lt;a name=&quot;Fast FAQ:-GUI program flow:&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:14 --&gt;GUI program flow:&lt;/h2&gt;
 Know a bit about BASIC? Cool. To make the transition to GUI you need to have the concept of &amp;quot;events&amp;quot; firmly in your mind. You set up events in your program, the keyboard might trigger an event, the mouse might trigger an event, and the timer might trigger an event. A listbox might trigger an event. Each event has a handler, a code block that will be called when the event fires.Typically at the end of this code block there will be a WAIT statement. Program execution sits and waits here till another event fires then it shoots off to action that. You may also use Subs to handle events.&lt;br /&gt;
&lt;br /&gt;
Events repeat, you need to switch them off if you don&#039;t want them to fire again. The timer statement catches a lot of folks out, switch it off immediately it has fired if you want it to be a one shot event.&lt;br /&gt;
&lt;br /&gt;
Subs are self contained and don&#039;t know much about the outside world. If an event that has a branch label handler fires while you are in the sub it&#039;s going to fail. Switch off events going into a sub or ensure the event is handled by a sub itself. Best not to mix subs and [branching] to labels in GUI code.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:16:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id=&quot;toc8&quot;&gt;&lt;a name=&quot;Fast FAQ:-Include:&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:16 --&gt;Include:&lt;/h2&gt;
 Include is not too relevant to Liberty BASIC. For a start the system is complete in itself and needs no libraries attached. There are no restrictions on code size so there is no need to page in and out segments of code. Code banks are available that let you cut and paste blocks of reusable code directly to the program. The IDE allows you to jump about the program in a variety of ways, click the Jump To icon to see. Liberty also provides direct access to Windows API and third party dll files.&lt;br /&gt;
&lt;br /&gt;
There are IDE&#039;s that provide include functionality if you really desire it.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:18:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id=&quot;toc9&quot;&gt;&lt;a name=&quot;Fast FAQ:-Typing &amp;amp; Dimming variables:&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:18 --&gt;Typing &amp;amp; Dimming variables:&lt;/h2&gt;
 If you are used to typing and defining variables forget it, this is automated within Liberty. Any number that has a fractional value beyond the decimal point is stored as a float, anything else is stored as an integer and they can be huge. Floats are precise to 16 significant figures and usually truncated when displayed. Optionally they can be viewed in full in the debugger (right click) or with the USING() command.&lt;br /&gt;
&lt;br /&gt;
As in any computer language you have to be aware that comparing two float values is problematic, they are never really equal. &amp;gt; or &amp;lt; is ok but don&#039;t try and see if floatA = floatB. Use Int() or add epsilon if you must.&lt;br /&gt;
&lt;br /&gt;
Variables initialise automatically to 0 or &amp;quot;&amp;quot; and don&#039;t need defined but you can if that&#039;s your habit. Arrays initiate automatically with 11 elements numbered 0 to 10 if you intend to use more than 11 elements you must dimension the array. Multi dimension arrays must be dimensioned and should be dimensioned at the start of the program. All arrays are global by default other variables may be specified as global if you wish.&lt;br /&gt;
&lt;br /&gt;
Liberty can hold 70Mb of variable data at any one time. Beyond that you need to page data in and out from file.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:20:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id=&quot;toc10&quot;&gt;&lt;a name=&quot;Fast FAQ:-Graphics:&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:20 --&gt;Graphics:&lt;/h2&gt;
 Liberty has a drawing pen, if you don&#039;t have that Down you won&#039;t see any graphics. So set the pen down as the first step in any graphics operation.&lt;br /&gt;
&lt;br /&gt;
Liberty has a Flush command that consolidates recent drawing operations into a segment. The segment resides in memory and can be redrawn instantly.&lt;br /&gt;
You must Flush if you want graphics to stick on screen and not be wiped out if another window passes over them. Be aware that Flush consumes memory, use it sparingly and delete any segments you don&#039;t need. You can use up your 70Mb of memory in a split second if you misuse the drawing commands.&lt;br /&gt;
&lt;br /&gt;
Liberty can scroll, display, scale and print huge graphic resources. But Getbmp may only capture and save the visible screen as a .bmp.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:22:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id=&quot;toc11&quot;&gt;&lt;a name=&quot;Fast FAQ:-Printing:&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:22 --&gt;Printing:&lt;/h2&gt;
 Dump only works with Lprint and is for line printing from the mainwin. Full high resolution graphics can be drawn and printed witht the graphics print command. You must issue a single Flush after all drawing if you want to print or scale graphics to the printer. The optional size argument is very powerful and spreads the number of pixels you state across the full width of the printed page.&lt;br /&gt;
&lt;br /&gt;
The printer dialog is not able to change from the default printer.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:24:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id=&quot;toc12&quot;&gt;&lt;a name=&quot;Fast FAQ:-Sorting:&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:24 --&gt;Sorting:&lt;/h2&gt;
 Liberty sorts in Lexographic or Dictionary order. This is different from ASCII order which you may be more used to. It is possible to arrange for the sort to be in ASCII order just be aware of the difference.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:26:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id=&quot;toc13&quot;&gt;&lt;a name=&quot;Fast FAQ:-Using():&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:26 --&gt;Using():&lt;/h2&gt;
 If you use the Using(###.##) statement you will get a % in front of your number if it is too big to fit in the template.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:28:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id=&quot;toc14&quot;&gt;&lt;a name=&quot;Fast FAQ:-Liberty Runtime Errors:&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:28 --&gt;Liberty Runtime Errors:&lt;/h2&gt;
 Tip, don&#039;t cry &amp;quot;bug”, you may feel foolish later :) try reading this and especially try running animate in the debugger.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:30:&amp;lt;h3&amp;gt; --&gt;&lt;h3 id=&quot;toc15&quot;&gt;&lt;a name=&quot;Fast FAQ:-Liberty Runtime Errors:-Creating an .exe gives OS Error cannot find file&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:30 --&gt;Creating an .exe gives OS Error cannot find file&lt;/h3&gt;
 Start Liberty from the folder you installed it in to begin creating your .exe&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:32:&amp;lt;h3&amp;gt; --&gt;&lt;h3 id=&quot;toc16&quot;&gt;&lt;a name=&quot;Fast FAQ:-Liberty Runtime Errors:-Creating an .exe gives Problem Creating File&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:32 --&gt;Creating an .exe gives Problem Creating File&lt;/h3&gt;
 Don&#039;t create your .exe in Liberty&#039;s program folder, create it elsewhere.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:34:&amp;lt;h3&amp;gt; --&gt;&lt;h3 id=&quot;toc17&quot;&gt;&lt;a name=&quot;Fast FAQ:-Liberty Runtime Errors:-Open file gives File System Access Denied&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:34 --&gt;Open file gives File System Access Denied&lt;/h3&gt;
 Either the file is already open, perhaps you forgot to close it, or it is in use by another program or you don&#039;t have Windows permission to access it.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:36:&amp;lt;h3&amp;gt; --&gt;&lt;h3 id=&quot;toc18&quot;&gt;&lt;a name=&quot;Fast FAQ:-Liberty Runtime Errors:-Open file gives Error Opening File&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:36 --&gt;Open file gives Error Opening File&lt;/h3&gt;
 The file is being written to by another program or, you don&#039;t have Windows permission to access it.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:38:&amp;lt;h3&amp;gt; --&gt;&lt;h3 id=&quot;toc19&quot;&gt;&lt;a name=&quot;Fast FAQ:-Liberty Runtime Errors:-Open file, the file is literally invisible&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:38 --&gt;Open file, the file is literally invisible&lt;/h3&gt;
 you don&#039;t have Windows permission to access it.&lt;br /&gt;
&lt;br /&gt;
You may need to change to a directory you do have access to or you may need to be an Administrator to gain permission to access the file.&lt;br /&gt;
&lt;br /&gt;
Also be aware that Windows hides .extensions by default so the file may be named mytext.txt.txt when you see mytext.txt&lt;br /&gt;
use windows help system to show .extensions&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:40:&amp;lt;h3&amp;gt; --&gt;&lt;h3 id=&quot;toc20&quot;&gt;&lt;a name=&quot;Fast FAQ:-Liberty Runtime Errors:-Attempted to kill non-existant file&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:40 --&gt;Attempted to kill non-existant file&lt;/h3&gt;
Using the Kill command you have named the file or path incorrectly or windows is denying you access. Print the path and file name to the mainwin &lt;br /&gt;
to check.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:42:&amp;lt;h3&amp;gt; --&gt;&lt;h3 id=&quot;toc21&quot;&gt;&lt;a name=&quot;Fast FAQ:-Liberty Runtime Errors:-Stack Overflow&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:42 --&gt;Stack Overflow&lt;/h3&gt;
This usually indicates that you have been jumping out of a programmed loop. Use exit for and exit while to leave loops early.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:44:&amp;lt;h3&amp;gt; --&gt;&lt;h3 id=&quot;toc22&quot;&gt;&lt;a name=&quot;Fast FAQ:-Liberty Runtime Errors:-System Primitive Failed&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:44 --&gt;System Primitive Failed&lt;/h3&gt;
 You ran out of memory by exceeding the 70MB memory limit of LB.&lt;br /&gt;
Check your loops, you may be creating a very large number or string, which is bigger than the memory left.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:46:&amp;lt;h3&amp;gt; --&gt;&lt;h3 id=&quot;toc23&quot;&gt;&lt;a name=&quot;Fast FAQ:-Liberty Runtime Errors:-Float invalid op&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:46 --&gt;Float invalid op&lt;/h3&gt;
 A function failed because of a negative value use abs(n) prior to sqr(n) or log(n)&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:48:&amp;lt;h3&amp;gt; --&gt;&lt;h3 id=&quot;toc24&quot;&gt;&lt;a name=&quot;Fast FAQ:-Liberty Runtime Errors:-Invalid branch label [xyz]&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:48 --&gt;Invalid branch label [xyz]&lt;/h3&gt;
 If it does exist you called it inside a sub that doesn&#039;t know where it is, a timer, mouse or keyboard event perhaps. Alternatively you have listed a [label] immediately after a [label]. Liberty expects code after a [label], don&#039;t pen another [label].&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:50:&amp;lt;h3&amp;gt; --&gt;&lt;h3 id=&quot;toc25&quot;&gt;&lt;a name=&quot;Fast FAQ:-Liberty Runtime Errors:-Index (nnn) is outside collection bounds&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:50 --&gt;Index (nnn) is outside collection bounds&lt;/h3&gt;
 An index is a pointer to a position in an array. Indexes are used in array variables, in record pointers and by the system in bmps. Most often you will have asked for an array item that does not exist. So check what value is in array(index), array(index,index) or seek(index).&lt;br /&gt;
&lt;br /&gt;
Sometimes this pops up for bmp files that are 32bit and have a transparency mask. Save your bmp from paint as a 24bit bmp.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:52:&amp;lt;h3&amp;gt; --&gt;&lt;h3 id=&quot;toc26&quot;&gt;&lt;a name=&quot;Fast FAQ:-Liberty Runtime Errors:-Argument must be a collection&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:52 --&gt;Argument must be a collection&lt;/h3&gt;
 This is often associated with sending Liberty the wrong set of arguments in a command string. sending &amp;quot;refresh&amp;quot; to graphicbox for example or using $ values where numeric values are expected. Animate should stop on the offending line, double check the help file for the command and examine the values in the variables.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:54:&amp;lt;h3&amp;gt; --&gt;&lt;h3 id=&quot;toc27&quot;&gt;&lt;a name=&quot;Fast FAQ:-Liberty Runtime Errors:-Collection is empty&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:54 --&gt;Collection is empty&lt;/h3&gt;
 Liberty expected some arguments but didn&#039;t get them, Print &amp;quot;!&amp;quot; to a textbox for example, Liberty expects arguments after the !command. Animate should stop on the offending line, double check the help file for the command.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:56:&amp;lt;h3&amp;gt; --&gt;&lt;h3 id=&quot;toc28&quot;&gt;&lt;a name=&quot;Fast FAQ:-Liberty Runtime Errors:-IsEmpty&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:56 --&gt;IsEmpty&lt;/h3&gt;
 Liberty found itself without the information it needed. This is most often program flow.&lt;br /&gt;
&lt;br /&gt;
Search for missing ends, end sub, end if, next. Practice indenting your code so that code blocks are easily visible. Make sure code does not run through to code blocks you didn&#039;t expect it to reach. Ensure Waits are placed where required.&lt;br /&gt;
&lt;br /&gt;
Other reasons for this error are missing arguments or missing data, file access denial or Liberty finding Null info where it expected something.&lt;br /&gt;
&lt;br /&gt;
This is sometimes the hardest to debug because program flow errors turn up anywhere but where the error was made. Use animate but don&#039;t assume the line shown is the cause.&lt;br /&gt;
Find the error.log and see what fragments of code are mentioned in it.&lt;br /&gt;
&lt;br /&gt;
Start manual debugging, use step through a line at a time and make sure you are going where you expected. Code in notices or use the run to break option in the debugger.&lt;br /&gt;
Hey debugging is part of the fun.&lt;br /&gt;
Up to date on info on everything that is discussed above is available in more detail within the Forums. Use the search features.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:58:&amp;lt;h3&amp;gt; --&gt;&lt;h3 id=&quot;toc29&quot;&gt;&lt;a name=&quot;Fast FAQ:-Liberty Runtime Errors:-Protection violation&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:58 --&gt;Protection violation&lt;/h3&gt;
 This is often associated with API calls and not having the correct data type specified in the Struct. Check the C definition of the API function.&lt;br /&gt;
&lt;br /&gt;
If an API call fails randomly it is likely that a handle is of the wrong type. This can happen if HWND is used to obtain a handle that is subsequently typed as Long. The safest thing to do is type all handle variables as Ulong.&lt;br /&gt;
&lt;br /&gt;
Lots of old API code uses Long, change this to Ulong and the problem will go away.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:60:&amp;lt;h3&amp;gt; --&gt;&lt;h3 id=&quot;toc30&quot;&gt;&lt;a name=&quot;Fast FAQ:-Liberty Runtime Errors:-String can&#039;t hold string&quot;&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:60 --&gt;String can&#039;t hold string&lt;/h3&gt;
 You are using an UNC path (\\Server\Share) to access your program.&lt;br /&gt;
To make things work you must map the shared drive to a drive letter.&lt;br /&gt;
&lt;br /&gt;
LB does not support UNC paths for the executables.&lt;br /&gt;
&lt;/span&gt;</description>
          </item>

  </channel>
</rss>