# BASIC 256 - Language Documentation

en:start

### BASIC-256 Syntax Reference 0.9.9.45

- Program Syntax
- Numeric Constants
- String Constants
- Variables
- Arrays
- Anonymous Arrays
- Operators
- Command Line Options
- Runtime Error Codes
- Compiler Error Codes

### Statements and Functions - Alphabetic

- Abs, Acos, Alert, Arc, Asc, Asin, Atan
- Call, Ceil, Changedir, Chord, Chr, Circle, Clickb, Clickclear, Clickx, Clicky, Clg, Close, Cls, Color, Confirm, Cos, Count, Countx, Currentdir
- Day, DBClose, DBCloseSet, DBExecute, DBFloat, DBInt, DBNull, DBOpen, DBOpenSet, DBRow, DBString, Degrees, Dir, Dim, Do / Until
- EditVisible, Else, End, EndFunction, EndIf, EndSubroutine, EndWhile, Eof, Exists, Exp, Explode, Explodex
- FastGraphics, Freedb, Freedbset, Freefile, Freenet, Float, Floor, Font, For / Next, FromBinary, FromHex, FromOctal, FromRadix, Function
- GetBrushColor, GetColor, GetPenWidth, GetSetting, GetSlice, Global, Goto, Gosub, Graphheight, Graphsize, GraphVisible, Graphwidth
- Hour
- Implode, Instr, Instrx, Int, If / Then, Imgload, Imgsave, Input
- Key, Kill
- Lasterror, Lasterrorextra, Lasterrorline, Lasterrormessage, Left, Length, Line, Log, Log10, Lower
- MD5, Mid, Minute, Month, Mouseb, Mousex, Mousey, Msec
- NetAddress, NetClose, NetConnect, NetData, NetListen, NetRead, NetWrite, Next
- Offerror, Onerror, Open, Openb, Ostype, OutputVisible
- Pause, PenWidth, Pie, Pixel, Plot, Poly, PortIn, PortOut, Print, Prompt, PutSlice
- Radians, Rand, Read, Readbyte, Readline, Rect, Redim, Ref, Refresh, Rem, Reset, Replace, Replacex, Return, Rgb, Right
- Say, Second, Seek, SetSetting, Sin, Size, Sound, Spritecollide, Spritedim, Spriteh, Spritehide, Spriteload, Spritemove, Spriteplace, Spriteshow, Spriteslice, Spriter, Sprites, Spritev, Spritew, Spritex, Spritey, Sqr, Stamp, String, Subroutine, System
- Tan, Text, TextWidth, Then, ThrowError, ToBinary, ToHex, ToOctal, ToRadix
- Until, Upper
- Version, Volume
- WAVplay, WAVstop, WAVwait, While / End While, While / End While, Write, Writebyte, Writeline
- Year

### Statements and Functions - Grouped

#### Arrays and Variables

Dim, Redim

#### Base Conversion

FromBinary, FromHex, FromOctal, FromRadix,ToBinary, ToHex, ToOctal, ToRadix

#### Database (SQLite)

DBClose, DBCloseSet, DBExecute, DBFloat, DBInt, DBNull, DBOpen, DBOpenSet, DBRow, DBString. Freedb, Freedbset

#### Error Handling

Freefile, Lasterror, Lasterrorextra, Lasterrorline, Lasterrormessage, Offerror, Onerror, ThrowError

#### File Input/Output

Changedir, Close, Currentdir, Dir, Eof, Exists, Freefile, Kill, Open, Openb, Read, Readbyte, Readline, Reset, Seek, Size, Write, Writebyte, Writeline

#### Graphics

##### Graphics - Colors

Color, GetBrushColor, GetColor, Rgb

##### Graphics - Drawing

Arc, Chord, Circle, GetPenWidth, Line, PenWidth, Pie, Plot, Poly, Rect, Stamp

##### Graphics - Text

Font, Text, TextWidth

##### Graphics - Window Control

Clg, FastGraphics, Graphheight, Graphsize, GraphVisible, Graphwidth, Refresh

##### Graphics - Image Files

Imgload, Imgsave

##### Graphics - Slices

GetSlice, PutSlice

##### Graphics - Sprites

Spritecollide, Spritedim, Spriteh, Spritehide, Spriteload, Spritemove, Spriteplace, Spriteshow, Spriteslice, Spriter, Sprites, Spritev, Spritew, Spritex, Spritey

##### Graphics - Other

Pixel

#### Keyboard and User Input

Alert, Confirm, Input, Key, Prompt

#### Mathematics

Abs, Acos, Asin, Atan, Ceil, Cos, Degrees, Exp, Float, Floor, Int, Log, Log10, Radians, Rand, Sin, Sqr, Tan

#### Mouse

Clickb, Clickclear, Clickx, Clicky, Mouseb, Mousex, Mousey,

#### Network Communications

Freenet, NetAddress, NetClose, NetConnect, NetData, NetListen, NetRead, NetWrite

#### Port Input/Output

PortIn, PortOut

#### Program Control

Call, Do / Until, End, For / Next, Function, Global, Goto, Gosub, If / Then, Pause, Ref, Rem, Return, Subroutine, While / End While

#### String Handling

Asc, Chr, Count, Countx, Explode, Explodex, Implode, Instr, Instrx, Left, Length, Lower, MD5, Mid, Replace, Replacex, Right, String, Upper

#### Settings (Persistent)

GetSetting, SetSetting

#### Sound

Say, Sound, Volume, WAVplay, WAVstop, WAVwait

#### Text Output

Cls, OutputVisible, Print

#### Time and Date

Day, Hour, Minute, Month, Msec, Second, Year

#### Other Statements and Functions

EditVisible, Ostype, System, Version

### Other Documentation

- Removed Features and Statements
- System Requirements
- Technical Information

en/start.txt · Last modified: 2013/02/09 21:08 by admin