OPTION
OPTION keyword
Used to pass parameters to the run-time environment.
Option | Description |
---|---|
OPTION BASE 0,1 | Set lowest allowed index of arrays to 0 or 1 |
OPTION PREDEF ANTIALIAS on,off | Set anti-aliasing for drawing lines or circles |
OPTION MATCH PCRE [CASELESS]SIMPLE | Set matching algorithm to (P)erl-(C)ompatible (R)egular (E)xpressions library or back to simple one for LIKE and FILES |
OPTION PREDEF QUIET | Sets the quiet flag (-q option) |
OPTION PREDEF COMMAND cmdstr | Sets the COMMAND$ string to cmdstr (useful for debug reasons) |
OPTION PREDEF GRMODE [WIDTHxHEIGHT[xBPP]] | Sets the graphics mode flag (-g option) or
sets the preferred screen resolution. Example:
OPTION PREDEF GRMODE 320x320x16 |
OPTION PREDEF TEXTMODE | Sets the text mode flag (-g- option) |
OPTION PREDEF CSTR | Sets as default string style the C-style
special character encoding (\ ) |
Code samples using OPTION
000 hello.bas
003 conditional branching.bas
100lines.bas
3d block lettes.bas
agendus.bas
aquarium v2.bas
ascii 3d.bas
betrayal: crows ii.bas
calc.bas
circ.bas
clock.bas
drawpoly.bas
ellipse.bas
falling blocks - tetris.bas
first factors mga.bas
g2 Life.bas
g3 Life.bas
g4 Life.bas
g5 Life.bas
g6 Life.bas
hanoi.bas
image_demo.bas
irc-bot.bas
leastq.bas
mastermind.bas
memoryTest.bas
memorytest.bas
mouse circle sounds.bas
new bas.bas
System
CHAIN
COMMAND
CWD
DELAY
ENV
ENV
EXEC
EXPORT
FRE
HOME
IMPORT
INCLUDE
MAXINT
NIL
OPTION
PAUSE
PI
PROGLINE
RANDOMIZE
RUN
SBVER
SELF
STKDUMP
TROFF
TRON
UNIT
If there is insufficient information on this page and you wish learn more about OPTION,
please send an email to smallbasic@gmail.com. You can help to improve information about
OPTION by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.