-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path1425.html
More file actions
282 lines (282 loc) · 25.1 KB
/
Copy path1425.html
File metadata and controls
282 lines (282 loc) · 25.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SmallBASIC | TRY</title>
<meta name="description" content="The TRY statement introduces a TRY/CATCH BLOCK">
<link rel="canonical" href="1425">
<link rel="keywords" href="TRY">
<link rel="stylesheet" href="/css/style.css">
<link rel="icon" type="image/png" href="/images/sb-desktop-32x32.png">
<script src="/clipboard.js"></script>
</head>
<body>
<button onclick="topFunction()" id="BackToTopBtn" title="Go to top">⯅</button>
<script src="/backtotop.js"></script>
<div class="wrapAll clearfix">
<nav class="navigation">
<div class="logo">
<a href="/"><img src='/images/sb-logo.png?v=2' alt="logo"></a>
</div>
<div class="navlinks">
<a href="/pages/download.html">Download</a>
<a href="/pages/news.html">News</a>
<a href="/pages/community.html">Community</a>
<a href="/pages/articles.html">Resources</a>
<a class='active' href="/pages/reference.html">Language Reference</a>
<a href="/pages/guide.html">SmallBASIC Manual</a>
</div>
</nav>
<div class="mainsection">
<div class="tabs clearfix">
<div class="tabsRight">
<a target="_github" href="https://github.com/smallbasic/smallbasic.github.io/blob/master/_build/reference/1425-language-try.markdown">Edit</a>
<a target="_github" href="https://github.com/smallbasic/smallbasic.github.io/commits/master/_build/reference/1425-language-try.markdown">History</a>
</div>
</div>
<div class="article">
<h1>TRY</h1>
<blockquote>TRY</blockquote>
<div class="siteSub">
<p>
<a href="/">Home</a> >
<a href="/pages/reference.html">Reference</a> >
<a href="/pages/language.html">Language</a>
</p>
</div>
<p>The TRY statement introduces a TRY/CATCH block. A try/catch block
consist of the following structure:</p>
<p><strong>TRY</strong></p>
<p>The TRY statement starts a block of commands which might create a
run-time error.</p>
<p><strong>CATCH [var | expr]</strong></p>
<p>The CATCH statement is used to catch a run-time error of one of the
commands in the try-block. This is typically used with errors raised
when calling a file system command that cannot be completed, for example
attempting to open a non-existent file.</p>
<p>The CATCH statement has two modes. You can supply a variable argument
to store the error string. Alternatively you can supply an expression.
When the raised error matches the (String) expression, the error will be
caught. When using the expression mode, you can supply a succession of
CATCH statements to handle various error messages separately.</p>
<p><strong>END TRY</strong></p>
<p>The END TRY statement marks the end of a TRY/CATCH block.</p>
<h3 id="example-1-opening-a-non-existing-file-for-reading">Example 1:
Opening a non-existing file for reading</h3>
<div class="sourceCode" id="cb1"><pre
class="sourceCode smallbasic"><code class="sourceCode smallbasic"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="kw">try</span></span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a> <span class="co">' DON'T use existing file for demo.</span></span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">open</span> <span class="st">"try demo.tmp"</span> <span class="kw">for input </span> <span class="kw">as</span> #<span class="dv">1</span></span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a><span class="kw">catch</span> err</span>
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a> <span class="kw">print</span> err</span>
<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a> <span class="co">' Some error handling could be implemented here</span></span>
<span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a> <span class="co">' i.e: if(err = "...") then ...</span></span>
<span id="cb1-8"><a href="#cb1-8" aria-hidden="true" tabindex="-1"></a><span class="kw">end try</span></span>
<span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-10"><a href="#cb1-10" aria-hidden="true" tabindex="-1"></a><span class="kw">print</span> <span class="st">"This point is reach, even if opening the file was not possible"</span></span></code></pre></div>
<h3 id="example-2-open-com-port">Example 2: Open COM-Port</h3>
<div class="sourceCode" id="cb2"><pre
class="sourceCode smallbasic"><code class="sourceCode smallbasic"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="kw">try</span></span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a> <span class="fu">open</span> <span class="st">"com2000:"</span> <span class="kw">AS</span> #<span class="dv">1</span></span>
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a><span class="kw">catch</span> err</span>
<span id="cb2-4"><a href="#cb2-4" aria-hidden="true" tabindex="-1"></a> <span class="kw">print</span> <span class="st">"open failed: "</span>;err</span>
<span id="cb2-5"><a href="#cb2-5" aria-hidden="true" tabindex="-1"></a><span class="kw">end try</span></span></code></pre></div>
<h3 id="example-3-using-error-expressions">Example 3: Using error
expressions</h3>
<div class="sourceCode" id="cb3"><pre
class="sourceCode smallbasic"><code class="sourceCode smallbasic"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="kw">try</span></span>
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a> <span class="co">' DON'T use existing file for demo.</span></span>
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">open</span> <span class="st">"demo.tmp"</span> <span class="kw">for input </span> <span class="kw">as</span> #<span class="dv">1</span> <span class="co">' Replace "demo.tmp" by "?.tmp"</span></span>
<span id="cb3-4"><a href="#cb3-4" aria-hidden="true" tabindex="-1"></a><span class="kw">catch</span> <span class="st">"FS(2): NO SUCH FILE OR DIRECTORY"</span></span>
<span id="cb3-5"><a href="#cb3-5" aria-hidden="true" tabindex="-1"></a> <span class="kw">print</span> <span class="st">"File not found"</span></span>
<span id="cb3-6"><a href="#cb3-6" aria-hidden="true" tabindex="-1"></a> <span class="co">' Some error handling could be implemented here </span></span>
<span id="cb3-7"><a href="#cb3-7" aria-hidden="true" tabindex="-1"></a> <span class="kw">goto</span> aftertrycatch</span>
<span id="cb3-8"><a href="#cb3-8" aria-hidden="true" tabindex="-1"></a><span class="kw">catch</span> <span class="st">"FS(22): INVALID ARGUMENT"</span></span>
<span id="cb3-9"><a href="#cb3-9" aria-hidden="true" tabindex="-1"></a> <span class="kw">print</span> <span class="st">"Filename not allowed"</span></span>
<span id="cb3-10"><a href="#cb3-10" aria-hidden="true" tabindex="-1"></a> <span class="co">' Some error handling could be implemented here </span></span>
<span id="cb3-11"><a href="#cb3-11" aria-hidden="true" tabindex="-1"></a><span class="kw">end try</span></span>
<span id="cb3-12"><a href="#cb3-12" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb3-13"><a href="#cb3-13" aria-hidden="true" tabindex="-1"></a><span class="kw">label</span> aftertrycatch</span>
<span id="cb3-14"><a href="#cb3-14" aria-hidden="true" tabindex="-1"></a><span class="kw">print</span> <span class="st">"end of program"</span></span></code></pre></div>
<h3 id="example-4-advanced-error-handling-for-opening-files">Example 4:
Advanced error handling for opening files</h3>
<div class="sourceCode" id="cb4"><pre
class="sourceCode smallbasic"><code class="sourceCode smallbasic"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="co">' See also: Home -- Articles -- TRY / CATCH</span></span>
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a><span class="dt">Const</span> FILE_NAME = <span class="st">"try demo.tmp"</span> <span class="co">' -- DON'T use existing file for demo.</span></span>
<span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a><span class="co">' OPEN file or device safely:</span></span>
<span id="cb4-4"><a href="#cb4-4" aria-hidden="true" tabindex="-1"></a><span class="kw">Func </span>opens(filename, mode)</span>
<span id="cb4-5"><a href="#cb4-5" aria-hidden="true" tabindex="-1"></a> <span class="dt">Local</span> fn = <span class="fu">Freefile</span></span>
<span id="cb4-6"><a href="#cb4-6" aria-hidden="true" tabindex="-1"></a> <span class="kw">Try</span></span>
<span id="cb4-7"><a href="#cb4-7" aria-hidden="true" tabindex="-1"></a> <span class="kw">Select Case </span><span class="fu">Lcase</span>(mode)</span>
<span id="cb4-8"><a href="#cb4-8" aria-hidden="true" tabindex="-1"></a> <span class="kw">Case</span> <span class="st">"input"</span> : <span class="fu">Open</span> filename <span class="kw">For Input </span> <span class="kw">As</span> <span class="cn">#fn</span></span>
<span id="cb4-9"><a href="#cb4-9" aria-hidden="true" tabindex="-1"></a> <span class="kw">Case</span> <span class="st">"output"</span>: <span class="fu">Open</span> filename <span class="kw">For Output As</span> <span class="cn">#fn</span></span>
<span id="cb4-10"><a href="#cb4-10" aria-hidden="true" tabindex="-1"></a> <span class="kw">Case</span> <span class="st">"append"</span>: <span class="fu">Open</span> filename <span class="kw">For Append As</span> <span class="cn">#fn</span></span>
<span id="cb4-11"><a href="#cb4-11" aria-hidden="true" tabindex="-1"></a> <span class="kw">Case</span> <span class="kw">Else</span>: ? <span class="st">"opens(): Bad open mode at line "</span> + <span class="kw">Progline</span>: <span class="kw">Stop</span></span>
<span id="cb4-12"><a href="#cb4-12" aria-hidden="true" tabindex="-1"></a> <span class="kw">End Select</span></span>
<span id="cb4-13"><a href="#cb4-13" aria-hidden="true" tabindex="-1"></a> opens = fn <span class="co">' file opened, return file-handle (integer 1 to 256)</span></span>
<span id="cb4-14"><a href="#cb4-14" aria-hidden="true" tabindex="-1"></a> <span class="kw">Catch</span> err</span>
<span id="cb4-15"><a href="#cb4-15" aria-hidden="true" tabindex="-1"></a> ? err; <span class="st">" "</span>;</span>
<span id="cb4-16"><a href="#cb4-16" aria-hidden="true" tabindex="-1"></a> opens = <span class="dv">0</span> <span class="co">' cannot open file, return 0 (FALSE)</span></span>
<span id="cb4-17"><a href="#cb4-17" aria-hidden="true" tabindex="-1"></a> <span class="kw">End Try</span></span>
<span id="cb4-18"><a href="#cb4-18" aria-hidden="true" tabindex="-1"></a><span class="kw">End Func</span></span>
<span id="cb4-19"><a href="#cb4-19" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb4-20"><a href="#cb4-20" aria-hidden="true" tabindex="-1"></a><span class="co">' helper for demo:</span></span>
<span id="cb4-21"><a href="#cb4-21" aria-hidden="true" tabindex="-1"></a><span class="kw">Func </span>demo(demo_number, open_mode)</span>
<span id="cb4-22"><a href="#cb4-22" aria-hidden="true" tabindex="-1"></a> <span class="dt">Local</span> fn</span>
<span id="cb4-23"><a href="#cb4-23" aria-hidden="true" tabindex="-1"></a> <span class="fu">Color</span> <span class="dv">14</span></span>
<span id="cb4-24"><a href="#cb4-24" aria-hidden="true" tabindex="-1"></a> ?: ? Using <span class="st">" Demo #: "</span>; demo_number;</span>
<span id="cb4-25"><a href="#cb4-25" aria-hidden="true" tabindex="-1"></a> <span class="fu">Color</span> <span class="dv">7</span></span>
<span id="cb4-26"><a href="#cb4-26" aria-hidden="true" tabindex="-1"></a> fn = opens(FILE_NAME, open_mode) <span class="co">' Open file safely</span></span>
<span id="cb4-27"><a href="#cb4-27" aria-hidden="true" tabindex="-1"></a> <span class="kw">If </span>fn <span class="kw">Then</span> ? <span class="st">"File-handle is: "</span>; fn; <span class="st">" "</span>;</span>
<span id="cb4-28"><a href="#cb4-28" aria-hidden="true" tabindex="-1"></a> demo = fn <span class="co">' return file-handle or 0 if error.</span></span>
<span id="cb4-29"><a href="#cb4-29" aria-hidden="true" tabindex="-1"></a><span class="kw">End Func</span></span>
<span id="cb4-30"><a href="#cb4-30" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb4-31"><a href="#cb4-31" aria-hidden="true" tabindex="-1"></a><span class="fu">Kill</span> FILE_NAME <span class="co">' delete file before demo</span></span>
<span id="cb4-32"><a href="#cb4-32" aria-hidden="true" tabindex="-1"></a>fn = demo(<span class="dv">1</span>, <span class="st">"INPUT"</span>)</span>
<span id="cb4-33"><a href="#cb4-33" aria-hidden="true" tabindex="-1"></a><span class="kw">If </span>fn <span class="kw">Then Cl</span>ose <span class="cn">#fn</span></span>
<span id="cb4-34"><a href="#cb4-34" aria-hidden="true" tabindex="-1"></a>fn = demo(<span class="dv">2</span>, <span class="st">"OUTPUT"</span>)</span>
<span id="cb4-35"><a href="#cb4-35" aria-hidden="true" tabindex="-1"></a><span class="kw">If </span>fn <span class="kw">Then</span></span>
<span id="cb4-36"><a href="#cb4-36" aria-hidden="true" tabindex="-1"></a> ? <span class="cn">#fn</span>, <span class="st">"Demo 2 Works!"</span></span>
<span id="cb4-37"><a href="#cb4-37" aria-hidden="true" tabindex="-1"></a> <span class="fu">Close</span> <span class="cn">#fn</span></span>
<span id="cb4-38"><a href="#cb4-38" aria-hidden="true" tabindex="-1"></a><span class="kw">Fi</span></span>
<span id="cb4-39"><a href="#cb4-39" aria-hidden="true" tabindex="-1"></a>fn = demo(<span class="dv">3</span>, <span class="st">"APPEND"</span>)</span>
<span id="cb4-40"><a href="#cb4-40" aria-hidden="true" tabindex="-1"></a><span class="kw">If </span>fn <span class="kw">Then</span></span>
<span id="cb4-41"><a href="#cb4-41" aria-hidden="true" tabindex="-1"></a> ? <span class="cn">#fn</span>, <span class="st">"Demo 3 Works!"</span></span>
<span id="cb4-42"><a href="#cb4-42" aria-hidden="true" tabindex="-1"></a> <span class="fu">Close</span> <span class="cn">#fn</span></span>
<span id="cb4-43"><a href="#cb4-43" aria-hidden="true" tabindex="-1"></a><span class="kw">Fi</span></span>
<span id="cb4-44"><a href="#cb4-44" aria-hidden="true" tabindex="-1"></a>fn = demo(<span class="dv">4</span>, <span class="st">"APPEND"</span>)</span>
<span id="cb4-45"><a href="#cb4-45" aria-hidden="true" tabindex="-1"></a><span class="kw">If </span>fn <span class="kw">Then</span></span>
<span id="cb4-46"><a href="#cb4-46" aria-hidden="true" tabindex="-1"></a> lines = [<span class="st">"Demo 4 Works!"</span>]</span>
<span id="cb4-47"><a href="#cb4-47" aria-hidden="true" tabindex="-1"></a> <span class="fu">Tsave</span> <span class="cn">#fn</span>, lines</span>
<span id="cb4-48"><a href="#cb4-48" aria-hidden="true" tabindex="-1"></a> <span class="fu">Close</span> <span class="cn">#fn</span></span>
<span id="cb4-49"><a href="#cb4-49" aria-hidden="true" tabindex="-1"></a><span class="kw">Fi</span></span>
<span id="cb4-50"><a href="#cb4-50" aria-hidden="true" tabindex="-1"></a>fn = demo(<span class="dv">5</span>, <span class="st">"INPUT"</span>)</span>
<span id="cb4-51"><a href="#cb4-51" aria-hidden="true" tabindex="-1"></a><span class="kw">If </span>fn <span class="kw">Then</span></span>
<span id="cb4-52"><a href="#cb4-52" aria-hidden="true" tabindex="-1"></a> <span class="fu">Tload</span> <span class="cn">#fn</span>, lines</span>
<span id="cb4-53"><a href="#cb4-53" aria-hidden="true" tabindex="-1"></a> ? lines;</span>
<span id="cb4-54"><a href="#cb4-54" aria-hidden="true" tabindex="-1"></a> <span class="fu">Close</span> <span class="cn">#fn</span></span>
<span id="cb4-55"><a href="#cb4-55" aria-hidden="true" tabindex="-1"></a><span class="kw">Fi</span></span>
<span id="cb4-56"><a href="#cb4-56" aria-hidden="true" tabindex="-1"></a>fn = demo(<span class="dv">6</span>, <span class="st">"INPUTX"</span>)</span>
<span id="cb4-57"><a href="#cb4-57" aria-hidden="true" tabindex="-1"></a><span class="kw">If </span>fn <span class="kw">Then</span></span>
<span id="cb4-58"><a href="#cb4-58" aria-hidden="true" tabindex="-1"></a> <span class="fu">Tload</span> <span class="cn">#fn</span>, lines</span>
<span id="cb4-59"><a href="#cb4-59" aria-hidden="true" tabindex="-1"></a> ? lines;</span>
<span id="cb4-60"><a href="#cb4-60" aria-hidden="true" tabindex="-1"></a> <span class="fu">Close</span> <span class="cn">#fn</span></span>
<span id="cb4-61"><a href="#cb4-61" aria-hidden="true" tabindex="-1"></a><span class="kw">Fi</span></span></code></pre></div>
<div class="lavenderBox">
<div class="header">Code samples using TRY</div>
<div class="linklist">
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/getting started/002 numeric variables.bas">002 numeric variables.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/getting started/004 loops.bas">004 loops.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/getting started/005 challenge.bas">005 challenge.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 3/2048.bas">2048.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 1/7gables.bas">7gables.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/misc/Misc Bpf/BAS_NOW.bas">BAS_NOW.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 1/betrayal: crows ii.bas">betrayal: crows ii.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 1/blackbox.bas">blackbox.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 3/Blackbox.bas">Blackbox.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 1/blackjack.bas">blackjack.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 3/BlackJack.bas">BlackJack.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 2/blushing snowflakes.bas">blushing snowflakes.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 3/bolmo.bas">bolmo.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 2/bulls and cows.bas">bulls and cows.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 4/Chaos_NPhase.bas">Chaos_NPhase.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 3/checkers.bas">checkers.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 3/chess.bas">chess.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/misc/Misc Bpf/circumscribe triangle.bas">circumscribe triangle.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 1/crow.bas">crow.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/mathematics/dataminmax.bas">dataminmax.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 1/dogstar5.bas">dogstar5.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 2/fireworks.bas">fireworks.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/mathematics/first factors mga.bas">first factors mga.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/misc/Other graphics/g2 Life.bas">g2 Life.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/misc/Other graphics/g3 Life.bas">g3 Life.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 1/g_col_09.bas">g_col_09.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 1/gui_cal.bas">gui_cal.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 1/illuminati.bas">illuminati.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/applications/loadsavebmp_fltk.bas">loadsavebmp_fltk.bas </a>
</div>
</div>
<div class="lavenderBox">
<div class="header">Language</div>
<div class="linklist">
<a href="/reference/662.html">AND </a>
<a href="/reference/1424.html">AS </a>
<a href="/reference/663.html">BAND </a>
<a href="/reference/1428.html">BG </a>
<a href="/reference/664.html">BOR </a>
<a href="/reference/639.html">BYREF </a>
<a href="/reference/637.html">CALL </a>
<a href="/reference/640.html">CASE </a>
<a href="/reference/1426.html">CATCH </a>
<a href="/reference/678.html">CONST </a>
<a href="/reference/1419.html">DECLARE </a>
<a href="/reference/641.html">DEF </a>
<a href="/reference/642.html">DO </a>
<a href="/reference/643.html">ELIF </a>
<a href="/reference/644.html">ELSE </a>
<a href="/reference/645.html">ELSEIF </a>
<a href="/reference/679.html">END </a>
<a href="/reference/1427.html">END TRY </a>
<a href="/reference/646.html">ENDIF </a>
<a href="/reference/665.html">EQV </a>
<a href="/reference/648.html">EXIT </a>
<a href="/reference/1457.html">FALSE </a>
<a href="/reference/650.html">FI </a>
<a href="/reference/680.html">FOR </a>
<a href="/reference/651.html">FUNC </a>
<a href="/reference/681.html">GOSUB </a>
<a href="/reference/682.html">GOTO </a>
<a href="/reference/683.html">IF </a>
<a href="/reference/638.html">IFF </a>
<a href="/reference/666.html">IMP </a>
<a href="/reference/667.html">IN </a>
<a href="/reference/684.html">LABEL </a>
<a href="/reference/685.html">LET </a>
<a href="/reference/668.html">LIKE </a>
<a href="/reference/653.html">LOCAL </a>
<a href="/reference/1496.html">LSHIFT </a>
<a href="/reference/669.html">MDL </a>
<a href="/reference/670.html">MOD </a>
<a href="/reference/671.html">NAND </a>
<a href="/reference/654.html">NEXT </a>
<a href="/reference/672.html">NOR </a>
<a href="/reference/673.html">NOT </a>
<a href="/reference/686.html">ON </a>
<a href="/reference/674.html">OR </a>
<a href="/reference/688.html">REM </a>
<a href="/reference/689.html">REPEAT </a>
<a href="/reference/690.html">RETURN </a>
<a href="/reference/1497.html">RSHIFT </a>
<a href="/reference/655.html">SELECT </a>
<a href="/reference/1421.html">STEP </a>
<a href="/reference/656.html">STOP </a>
<a href="/reference/657.html">SUB </a>
<a href="/reference/658.html">THEN </a>
<a href="/reference/1437.html">THROW </a>
<a href="/reference/1420.html">TO </a>
<a href="/reference/1455.html">TRUE </a>
<a href="/reference/1425.html"><strong>TRY</strong> </a>
<a href="/reference/660.html">UNTIL </a>
<a href="/reference/661.html">USE </a>
<a href="/reference/1423.html">USG </a>
<a href="/reference/1422.html">USING </a>
<a href="/reference/691.html">WEND </a>
<a href="/reference/692.html">WHILE </a>
<a href="/reference/675.html">XNOR </a>
<a href="/reference/676.html">XOR </a>
</div>
</div>
</div>
<div class="pagefooter">
This page was last edited on Wed, 6 Sep 2023 18:16:12 +0200
|
<a href="https://en.wikipedia.org/wiki/Markdown" target="_blank" rel="nofollow">Markdown</a>
processed with
<a href="https://pandoc.org/MANUAL.html#pandocs-markdown" target="_blank" rel="nofollow">pandoc 3.1.12.1</a>
</div>
</div>
</div>
</body>
</html>