-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path1442.html
More file actions
185 lines (185 loc) · 10.1 KB
/
Copy path1442.html
File metadata and controls
185 lines (185 loc) · 10.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
<!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 | OPTION</title>
<meta name="description" content="Used to pass parameters to the run-time environment.">
<link rel="canonical" href="1442">
<link rel="keywords" href="OPTION keyword">
<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/1442-system-option.markdown">Edit</a>
<a target="_github" href="https://github.com/smallbasic/smallbasic.github.io/commits/master/_build/reference/1442-system-option.markdown">History</a>
</div>
</div>
<div class="article">
<h1>OPTION</h1>
<blockquote>OPTION keyword</blockquote>
<div class="siteSub">
<p>
<a href="/">Home</a> >
<a href="/pages/reference.html">Reference</a> >
<a href="/pages/system.html">System</a>
</p>
</div>
<p>Used to pass parameters to the run-time environment.</p>
<table>
<colgroup>
<col style="width: 50%" />
<col style="width: 50%" />
</colgroup>
<thead>
<tr>
<th style="text-align: left;">Option</th>
<th style="text-align: left;">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">OPTION BASE 0,1</td>
<td style="text-align: left;">Set lowest allowed index of arrays to 0 or
1</td>
</tr>
<tr>
<td style="text-align: left;">OPTION PREDEF ANTIALIAS on,off</td>
<td style="text-align: left;">Set anti-aliasing for drawing lines or
circles</td>
</tr>
<tr>
<td style="text-align: left;">OPTION MATCH PCRE [CASELESS]SIMPLE</td>
<td style="text-align: left;">Set matching algorithm to
(P)erl-(C)ompatible (R)egular (E)xpressions library or back to simple
one for LIKE and FILES</td>
</tr>
<tr>
<td style="text-align: left;">OPTION PREDEF QUIET</td>
<td style="text-align: left;">Sets the quiet flag (-q option)</td>
</tr>
<tr>
<td style="text-align: left;">OPTION PREDEF COMMAND cmdstr</td>
<td style="text-align: left;">Sets the COMMAND$ string to cmdstr (useful
for debug reasons)</td>
</tr>
<tr>
<td style="text-align: left;">OPTION PREDEF GRMODE
[WIDTHxHEIGHT[xBPP]]</td>
<td style="text-align: left;">Sets the graphics mode flag (-g option) or
sets the preferred screen resolution. Example:
<code>OPTION PREDEF GRMODE 320x320x16</code></td>
</tr>
<tr>
<td style="text-align: left;">OPTION PREDEF TEXTMODE</td>
<td style="text-align: left;">Sets the text mode flag (-g- option)</td>
</tr>
<tr>
<td style="text-align: left;">OPTION PREDEF CSTR</td>
<td style="text-align: left;">Sets as default string style the C-style
special character encoding (<code>\</code>)</td>
</tr>
<tr>
<td style="text-align: left;">OPTION PREDEF AUTOLOCAL</td>
<td style="text-align: left;">All variables are local by default</td>
</tr>
</tbody>
</table>
<div class="lavenderBox">
<div class="header">Code samples using OPTION</div>
<div class="linklist">
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/getting started/000 hello.bas">000 hello.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/getting started/003 conditional branching.bas">003 conditional branching.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 3/100lines.bas">100lines.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/misc/Misc Bpf/3d block lettes.bas">3d block lettes.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/utilities/agendus.bas">agendus.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 2/aquarium v2.bas">aquarium v2.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/misc/Misc Bpf/ascii 3d.bas">ascii 3d.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/applications/calc.bas">calc.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 4/circ.bas">circ.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 4/clock.bas">clock.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 4/drawpoly.bas">drawpoly.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/geometry/ellipse.bas">ellipse.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 2/falling blocks - tetris.bas">falling blocks - tetris.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/misc/Other graphics/g4 Life.bas">g4 Life.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/misc/Other graphics/g5 Life.bas">g5 Life.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/misc/Other graphics/g6 Life.bas">g6 Life.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 1/hanoi.bas">hanoi.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/graphics 4/image_demo.bas">image_demo.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/network/irc-bot.bas">irc-bot.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/mathematics/leastq.bas">leastq.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 2/mastermind.bas">mastermind.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/applications/memoryTest.bas">memoryTest.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/games 1/memorytest.bas">memorytest.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/sound/mouse circle sounds.bas">mouse circle sounds.bas </a>
<a target="_github" href="https://raw.githubusercontent.com/smallbasic/smallbasic.samples/master/system/new bas.bas">new bas.bas </a>
</div>
</div>
<div class="lavenderBox">
<div class="header">System</div>
<div class="linklist">
<a href="/reference/1439.html">CHAIN </a>
<a href="/reference/1521.html">COMMAND </a>
<a href="/reference/1522.html">CWD </a>
<a href="/reference/806.html">DELAY </a>
<a href="/reference/807.html">ENV </a>
<a href="/reference/815.html">ENV </a>
<a href="/reference/1443.html">EXEC </a>
<a href="/reference/1440.html">EXPORT </a>
<a href="/reference/606.html">FRE </a>
<a href="/reference/1525.html">HOME </a>
<a href="/reference/1441.html">IMPORT </a>
<a href="/reference/1462.html">INCLUDE </a>
<a href="/reference/1736.html">MAXINT </a>
<a href="/reference/1735.html">NIL </a>
<a href="/reference/1442.html"><strong>OPTION</strong> </a>
<a href="/reference/809.html">PAUSE </a>
<a href="/reference/1524.html">PI </a>
<a href="/reference/817.html">PROGLINE </a>
<a href="/reference/810.html">RANDOMIZE </a>
<a href="/reference/818.html">RUN </a>
<a href="/reference/1523.html">SBVER </a>
<a href="/reference/1734.html">SELF </a>
<a href="/reference/812.html">STKDUMP </a>
<a href="/reference/813.html">TROFF </a>
<a href="/reference/814.html">TRON </a>
<a href="/reference/1446.html">UNIT </a>
</div>
</div>
</div>
<div class="pagefooter">
This page was last edited on Fri, 9 Jun 2023 15:22:35 +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.2.1</a>
</div>
</div>
</div>
</body>
</html>