BASIC COMMAND SET

All BASIC languages are formed from a core set of commands that make learning a new language a gradual and rewarding process. Not only are these commands essential for the beginner, but are a vital building block for all programs. All standard structures, conditional operators and mathematical forms are recognized.

Click on any commands for more information:

IF THEN will run the commands at end of line, if condition is true
IF ENDIF will run the command block, if condition is true
IF ELSE ENDIF will run different command blocks based on condition
FOR NEXT will loop from the FOR to the NEXT a set number of times
STEP will allow you to increase the increment value in a FOR NEXT commands
DO LOOP will loop the command block indefinitely
REPEAT UNTIL will run the command block before checking condition
WHILE ENDWHILE will run the command block after checking condition
EXIT will break out of any control loop
FUNCTION will declare the start of a user defined function
ENDFUNCTION will declare the end of a user defined function
EXITFUNCTION will immediately exit the function
GOSUB will jump to the specified label and later return
GOTO will jump to the specified label without returning
END will stop the program running

RESTORE will reset data pointer to beginning of a data statement
DATA will allow you to store data in you program
READ will read next item from the data statement in your program

SUSPEND FOR KEY will pause the program, until a key is pressed
SUSPEND FOR MOUSE will pause the program, until a mouse button press
SLEEP will put the computer to sleep for the required time
WAIT will make the computer wait for the required time
SYNC will cause the computer to refresh the screen
SYNC RATE will specify a new maximum refresh rate

DIM will create an array which can be up to five dimensions long
LOAD ARRAY will load the contents of a file into the specified array
SAVE ARRAY will save the contents of a specified array to a file
UNDIM will delete an array from memory

REM will allow you to put comments in your program
REMSTART will indicate the start of a comments block
REMEND will indicate the end of a comments block

#INCLUDE will allow you to attach functions from other programs


The following commands will return a result:

CL$() will return the command line string from the standalone executable
TIMER() will return the system time in milliseconds
GET DATE$() will return the current clock date
GET TIME$() will return the current clock time