home *** CD-ROM | disk | FTP | other *** search
- ABS
- Finds the absolute value of a numeric variable
- eg/abs(x) is always a positive number
- AND
- Logical operator
- Both conditions must be true.
- eg/if x=1 AND Y=2 then PRINT "x=1 and y=2
- APPEND
- Mode of opening sequential file.
- The file cannot be read from, but data can be added(appended) to the end.
- eg/OPEN NAM$ FOR APPEND AS 1
- AREA
- Creates a side of a polygon.
- ie/AREA [step](x,y)
- A side is connected with the previous point entered.
- The polygon will not be visible until AREAFILL is used.
- AREAFILL
- Fills a polygon created with AREA statements with the given colour.
- Without this command the polygon is not visible.
- AS
- Used in conjunction with some other commands.
- eg/OPEN NAM$ FOR INPUT AS 1
- ASC
- REturns the ASCII value of a character.
- This is the opposite of CHR$.
- eg/a$=asc(96)
- ATN
- Finds the arctangent for the mathematically inclined.
- eg/a=ATN(b)
- BASE
- Used in the OPTION BASE statement.
- See OPTION
- BEEP
- Makes a warning sound.
- You have heard it when you tried moving the cursor off the screen.
- eg/BEEP
- BREAK
- Used with event trapping in response to the user using the CTRL-C key.
- combination to stop a program.
- eg/BREAK OFF,BREAK OFF,BREAK STOP
- CALL
- Used to invoke a subprogram.
- eg/CALL subprogramname
- The CALL is optional, only the subprogramname can be given.
- CDBL
- Converts a number to a double precision number.
- CHAIN
- Runs a new program, without closing any open files.
- eg/CHAIN programname
- CHDIR
- Changes the current directory.
- Follow with a new directory name, eg/df0: df1: ram: etc.
- eg/CHDIR "df1:"
- CHR$
- Returns the character with the given ASCII value.
- Is the opposite to ASC.
- eg/x=chr$(96)
- CINT
- Rounds a number off to an integer.
- eg/cint(2.5) would equal 2.
- CIRCLE
- Draws a circle with the centre at x,y and with a radius of r.
- Options are to add aspect(height to width ratio).
- CLEAR
- Increases available memory by setting all variables to 0 or "".
- CLNG
- Converts a number to a long integer.
- CLOSE
- Closes all files.
- alternatively, you can close one specific file by giving a file number.
- (The number the file was opened as)>.
- eg/CLOSE 1 only closes the file which was opened as 1.
- The file is not written to the disk until CLOSE is used.
- CLS
- Clears the current window and places the cursor in the top left hand corner.
- COLLISION
- Used when an object(bob or sprite) collides with another object or the edge
- of the screen.
- eg/ON COLLISION GOSUB label
- COLOR
- Sets the current background and foreground colours.
- eg/COLOR 3,1 will mean that graphics and text will be drawn in COLOR 3 on a
- background with the COLOR 1. (Colours can be altered with PALETTE).
- COMMON
- Used in conjunction with the CHAIN statement.
- Allows variables to be shared between the chaining program and the chained
- program.
- eg/CHAIN program2
- COMMON x
- CONT
- Continues a program that has been stopped with the STOP statement.
- A menu item performs the same function.
- COS
- Calcualtes the COSine of a number.
- CSNG
- Converts a number to a single precision number.
- CSRLIN
- Finds the current line of the cursor.
- Used in conjunction with pos(x) the exact position of the cursor can be
- found.
- CVD
- Converts random file numeric (4 byte)string values to numeric values.
- CVS
- Converts random file numeric (8 byte)string values to numeric values.
-
-