A B C D E F G H I
J K L M N O P Q R
S T U V W X Y Z  

Free Basic Command Reference:

#define-Defines an identifier with a custom meaning
#else-
#elseif
#endif
#if
#ifdef
#ifndef
#undef
$DYNAMIC
$inclib
$include
$static


A


ABS - ABS returns the positive number of the number given
ACCESS - used with the open statement.
acos -
ALIAS - gives a procedure in a library a new name that you want to reference it with
allocate - Allocates as much memory as you want (in bytes) and returns a pointer to the beginning
AND
ANY - Used to disable type checking for a variable that is a parameter of a procedure
APPEND - opens the file with the APPEND file mode
array
AS
ASC - Returns the ascii code of the first character
asin
asm - inline assembly
atan2
ATN

Up

B
BIT
BITSET
BITRESET intrinsic macros (v1c)
BEEP-BEEP tells the system to sound a beep noise
bin$-Returns the binary value of a decimal number
BINARY - opens the file with the binary file mode
BLOAD - Statement to load a block of binary (graphic) data from a file
BSAVE - Statement to save a block of binary (graphic) data into a file
byref
byte
BYVAL

Up

C

CALL
CALL ABSOLUTE-Unsupported.
CALL INTERRUPT-Unsupported.
CALLOCATE - same as ALLOCATE, but clears the contents
calls - Redundant, and the same as call. Kept for compadibility reasons
CASE
CBYTE - Converts any numeric expression to a byte.
CDBL
CDECL
CHAIN-Runs another program and transfers control to that program
CHDIR-Changes the current directory.
CHR$-Returns the ascii character of the byte
CINT-Converts any number to an integer by removing the fractional part.
CIRCLE-draw circles, ellipses or arcs.
CLEAR-Resets all values in an array to what you want (usually 0 is useful).
CLNG
CLOSE-Closes one file or closes all files
CLS-Clears the console screen.
color-Sets the display foreground / background color
COM-Unsupported.See QComPort- implements some of the functionality of the missing QCOMPORT Component
COMMAND$-Returns command line parameters used to call the program.
COMMON
CONS:
CONST
continue - Re-enters a code block such as a do...loop, for...next, or a while...wend block
COS
CSHORT
CSIGN
CSNG
CSRLIN-Returns the current line position
CUNSG
curdir$-Returns the current directory/folder. See also exepath
CVD
CVDMBF-Unsupported.
CVI
CVL
CVS
CVSMBF-Unsupported.

Up

D

data
DATE$-Used to return the current date, or set a new date for the system.
deallocate - Deallocates memory allocated with allocate
DECLARE- declaration of function or sub
DEF FN
DEF SEG
defbyte
DEFDBL
defined
DEFINT
DEFLNG
defshort
DEFSNG
DEFSTR
defubyte
defuint
defushort
dim
dir$-Returns files in the current directory/folder.
DO...LOOP-Repeats a block of statements until/while a contition is met.
DOUBLE
DRAW-sequenced pixel plotting.
DYLIBLOAD  DYLIBSYMBOL
Up

E

ELSE
ELSEIF
end
ENDIF
enum - enum (short for enumeration) creates a numbered list with items that correspond to discrete values.
environ
ENVIRON$-Returns the value of a system environment variable
EOF-EOF stands for end-of-file
EQV
ERASE-Erases dynamic arrays from memory, or clears all elements in a static array
ERDEV
ERDEV$
ERL
err - After an error, returns the error code that occured
ERR:
error - This can be used to simulate custom error numbers
exec - function( program as string, arguments as string ) as integer
exepath - Returns the path of the progam itself
EXIT-Leaves a code block such as a sub, function, do...loop, while...wend, or a for...next block.
(exit do, exit for, exit sub, exit function)

EXP
Export -dll export

Up

F
 

FIELD
FILEATTR
FILES
FIX-- A function that removes the fractional part of a number
flip - Alias for PCOPY and SCREENCOPY
FOR...NEXT-Repeats execution of a code block a number of times
FRE - Returns the free memory (ram) avaliable in bytes.
FREEFILE - Returns the next open file slot
FUNCTION
Up

G

GET (File I/O) - Reads data from a file in binary mode
GET (Graphics) - save a block of pixels data into an array.
getkey
getmouse - Statement to retrieve mouse position and buttons status
GOSUB
GOTO
Up

H

HEX$
HIBYTE -  intrinsic macros
HIWORD

Up

I

IF...THEN
IIF - immediate IF function
IMP - A bitwise operator which is the same as (not a) or b
INKEY$-Returns the last key pushed on the keyboard.
INP - VGA port input emulation.
INPUT
INPUT #
input (file mode)
INPUT$
INSTR
INT
integer
IOCTL
IOCTL$
IS
Up

J

Up

K

KEY
KEY(n)
KILL - deletes a file from disk.
Up

L

Label

LBOUND
LCASE$-returns a string expression with all letters lower-case
LEFT$-returns 'n' amount of characters starting from the left
LEN-Returns the size of a variable in bytes.
LET
lib
LINE (Graphics)-draws a straight line or a box
LINE INPUT
LINE INPUT #
LIST
LOBYTE
loc - Returns the position with an open file (in binary mode only).
LOCAL
LOCATE-Sets the console cursor
LOCK-Lock will restrict access to a file
LOF-Returns the length of file of an open file given the file slot.
LOG
LONG
LOOP
LOWORD
LPOS
LPRINT
LSET- left justifies text into the string buffer
LTRIM$-Ltrim (left trim) trims the leading white space.
Up

M

MID$ (function)-returns a section of a string starting from 'start' for 'length' characters.
MID$ (statement)-Allows part of a string to be replaced.
MKD$-Encodes a double-precision floating point number to a string.
MKDIR-Makes a folder on the local file system.
MKDMBF$
MKI$-Encodes a 32bit integer number to a string
MKL$-Encodes a long number to a string.
MKS$-Encodes a single-precision floating point number to a string.
MKSMBF$
MOD-Returns the remainder of a divided by b (modulus)
multikey-Function to detect multiple keypresses.
Up

N
 

NAME-Renames a file originally called oldname to newname.
NEXT
NOT
Up

O
 

OCT$-Returns a number in octal format (base 8) in a string.
OFF
ON
ON COM(n)
ON ERROR
ON event
ON KEY(n)
ON PEN
ON PLAY(n)
ON STRIG(n)
ON TIMER(n)
ON UEVENT
ON...GOSUB
ON...GOTO
ONCE
OPEN-Opens a file on the system for reading/writing
OPEN COM
OPTION BASE-Sets the default lower bound of an array subscript.
OPTION NOKEYWORD - remove intrinsic routines/statements
option private
OR
OUT-VGA port output emulation.
OUTPUT-A file mode
Up

P
 

PAINT-fill an area with a color
PALETTE-customize current palette.
pascal
PCOPY-Copies one video page to another.
PEEK-return the value in memory given by a memory address.
peeki-not supported since v0.11 use PEEK
peeks-not supported since v0.11 use PEEK
PEN
PEN
PLAY (Event Trapping)
PLAY (Music)
PLAY(n)
PMAP-map coordinates between view and physical mapping.
POINT-read a pixel color or coordinate
pointer
POKE- changes the value in memory given by a memory address.
pokei-not supported since v0.11 use POKE
pokes-not supported since v0.11 use POKE
POS-Returns the horizontal (left-right) position of the text cursor.
preserve-data in array is not reset but is preserved
PRESET-PRESET works exactly like PSET
PRINT-Displays text on the screen
PRINT #
PRINT USING
private
procptr
PSET-plot a single pixel.
ptr
public
PUT (File I/O)-Writes data to a file in binary mode.
PUT (Graphics)-draw a block of pixels previously saved by GET
 

Up

 
Q

Up

R

RANDOM-file mode
RANDOMIZE
READ
reallocate
REDIM-Changes the size of an array (upper and lower bounds).
REM
RESET-Closes all disk files.
RESOURCE
RESTORE
RESUME
RETURN
rgb-compute valid color value for hi/truecolor modes
RIGHT$-returns 'n' amount of characters starting from the right of 'text$' string.
RMDIR-Removes a folder from the file system.
RND
RSET-right justifies text into the string buffer
RTRIM$-Rtrim (right trim) trims the trailing white space from string.
run-executes a specified program without blocking.

Up

S

SADD-Returns the memory offset of the string data in the string variable
screen (graphics)- set current gfx mode.
screencopy-copy the contents of a graphical page into another graphical page
screeninfo- information about current video mode
screenlock- lock work page framebuffer.
screenptr-returns a pointer to the current work page framebuffer memory
screenset-set current work and visible pages.
screenunlock-unlock work page framebuffer.
SEEK (return)-Returns the position (in bytes)
SEEK (set)-Sets the position (in bytes)
SELECT CASE
setdate- set the date
SETMOUSE set mouse position and cursor visibility
SETENVIRON-Modifies system environment variables.
SETMEM-Unsupported.
SGN
shared
shell-Shell sends commands to the system command prompt
shl-shifts all bits in the integer to the left
short
shr-shifts all bits in the integer to the right
SIGNAL
SIN
SINGLE
sleep-sleep will wait 'time' milliseconds.
SOUND
SPACE$-Returns a string full of spaces
SPC-Returns a string full of spaces (Old)
SQR-Returns the square root of the number
static
stdcall
STEP
STICK
stop-Ends the execution of the program and returns to the system.
STR$-Converts a number into a string.
STRIG
STRIG
strcat- concatenate two strings
strchr
- string scanning operation
strcmp-
compare two strings
strcpy
- copy a string
strlen
- get string length
strncat
- concatenate a string with part of another
strncmp-compare part of two strings
strncpy
- copy part of a string
strrchr
- string scanning operation
strstr
- find a substring
STRING
STRING$-String repeats a character (given by the character code number, or a string) 'n' times
SUB
SWAP
SYSTEM-Closes all open files and returns to the system.
Up

T

TAB-set the column in a print expression
TAN
THEN
TIME$-Returns the current time in the format hh:mm:ss.
TIMER-Returns the number of seconds past midnight.
TO
trim$-delete left and right spaces .
TROFF
TRON
TYPE
Up

U
 

UBOUND
ubyte
UCASE$-returns a string expression with all letters upper-case.
UDT
UEVENT
uinteger
union
UNLOCK-unlock access to a previously locked file
unsigned
UNTIL- is used with the do...loop structure.
ushort
Up

V

VAL
VARPTR-Returns the memory address of a variable.
VARPTR$- not supported
VARSEG
VIEW (Graphics)-new physical coordinates mapping
VIEW (Text)-Sets the boundaries of the console screen text area.
Up

W

WAIT-DOS port data waiting emulation.
WEND
WHILE...WEND- repeats the statements, while the condition is true.
width-Sets the console screen size in windows.
With.. end with
WINDOW-new view coordinates mapping for current viewport
Windowtitle- set the program window title.
WRITE (File I/O)
WRITE (Screen I/O)
Up

X

XOR
Up

Y

Up

Z

Up