Start
BASIC-256 Syntax Reference 2.1-Beta
- Program Syntax
- Modules
- Constants
- Expressions
- Variables
- Arrays
- Maps
- Operators
- Runtime Error and Warning Codes
- Command Line Options
- Compiler Error Codes
Statements and Functions - Alphabetic
- ?
- Abs, Acos, Alert, Arc, ArrayBase, ArrayLength, Asc, Asin, Assigned, Atan
* Begin Case / Case / End Case - Call, Ceil, Changedir, Chord, Chr, Circle, Clickb, Clickclear, Clickx, Clicky, Clg, Close, Cls, Color, Confirm, Continue Do, Continue For, Continue While, 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, Exit Do, Exit For, Exit While, Exp, Explode, Explodex
* FastGraphics, Fill, Freedb, Freedbset, Freefile, Freenet, Float, Floor, Font, For / Next, For Each / Next, FromBinary, FromHex, FromOctal, FromRadix, Function
* GetBrushColor, GetClipboardImage, GetClipboardString, GetColor, GetPenWidth, GetSetting, GetSlice, Global, Goto, Gosub, Graphheight, Graphsize, GraphToolBarVisible, GraphVisible, Graphwidth
* Hour
* Implode, Include, Instr, Instrx, Int, If Then, ImageAutoCrop, ImageCentered, ImageCopy, ImageCrop, ImageDraw, ImageFlip, ImageHeight, ImageLoad, ImageNew, ImagePixel, ImageResize, ImageRotate, ImageSetPixel, ImageSmooth, ImageTransformed, ImageWidth, Imgload, Imgsave, Input, Input Float, Input Integer, Input String, IsNumeric
* Key, Keypressed, Kill
* Lasterror, Lasterrorextra, Lasterrorline, Lasterrormessage, Left, Length, Line, Ljust, Log, Log10, Lower, LTrim
* MainToolBarVisible, Map, MD5, Mid, Midx, Minute, mkdir, Month, Mouseb, Mousex, Mousey, Msec
* NetAddress, NetClose, NetConnect, NetData, NetListen, NetRead, NetWrite, Next
* Offerror, Onerror, OnStop, Open, Openb, OpenFileDialog, OpenSerial, Ostype,OutputToolBarVisible, OutputVisible
* Pause, PenWidth, Pie, Pixel, Plot, Poly, PortIn, PortOut, Print, Printercancel, Printeroff, Printeron, Printerpage, Prompt, PutSlice
* Radians, Rand, Read, Readbyte, Readline, Rect, Redim, Ref, Refresh, RegexMinimal, Rem, Reset, Replace, Replacex, Return, Rgb, Right, Rjust, rmdir, Round, RTrim
* SaveFileDialog, Say, Second, Seed, Seek, Serialize, SetClipboardImage, SetClipboardString, SetSetting, Sin, Size, Sound, SoundEnvelope, SoundFade, SoundHarmonics, SoundID, SoundLength, SoundLoad, SoundLoadRaw, SoundLoop, SoundPause, SoundPlay, SoundPlayer, SoundPlayerOff, SoundPosition, SoundSampleRate, SoundSeek, SoundState, SoundStop, SoundSystem, SoundVolume, SoundWait, SoundWaveform, Spritecollide, Spritedim, Spriteh, Spritehide, Spriteload, Spritemove, Spriteo, Spriteplace, Spritepoly, Spriter, Sprites, Spriteshow, Spriteslice, Spritetext, Spritev, Spritew, Spritex, Spritey, Sqr, Stamp, String, Subroutine, System
* Tan, Text, TextHeight, TextWidth, Then, ThrowError, ToBinary, ToHex, ToOctal, ToRadix, Trim, Try / Catch / End Try, TypeOf
* Unassign, Unload, Unserialize, Until, Upper
* VariableWatch, Version, Volume
* WAVlength, WAVpause, WAVplay, WAVpos, WAVseek, WAVstate, WAVstop, WAVwait, While / End While, Write, Writebyte, Writeline
* Year
* Zfill
Statements and Functions - Grouped
Arrays and Variables
ArrayBase, ArrayLength, Assigned, Dim, Fill, Map, Redim, TypeOf, Unassign, VariableWatch
Base Conversion
FromBinary, FromHex, FromOctal, FromRadix,ToBinary, ToHex, ToOctal, ToRadix
Clipboard
GetClipboardImage, GetClipboardString, SetClipboardImage, SetClipboardString
Database (SQLite)
DBClose, DBCloseSet, DBExecute, DBFloat, DBInt, DBNull, DBOpen, DBOpenSet, DBRow, DBString. Freedb, Freedbset
Error Handling
Lasterror, Lasterrorextra, Lasterrorline, Lasterrormessage, Offerror, Onerror, OnStop, ThrowError, Try / Catch / EndTry
File and Serial Port Input/Output
Changedir, Close, Currentdir, Dir, Eof, Exists, Freefile, Kill, mkdir, Open, Openb, OpenFileDialog, OpenSerial, Read, Readbyte, Readline, Reset, rmdir, SaveFileDialog, 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, TextHeight, TextWidth
Graphics - Window Control
Clg, FastGraphics, Graphheight, Graphsize, Graphwidth, Refresh
Graphics - Image Files
Graphics - Images in Memory
ImageAutoCrop, ImageCentered, ImageCopy, ImageCrop, ImageDraw, ImageFlip, ImageHeight, ImageLoad, ImageNew, ImagePixel, ImageResize, ImageRotate, ImageSetPixel, ImageSmooth, ImageTransformed, ImageWidth, Unload
Graphics - Slices
Graphics - Sprites
Spritecollide, Spritedim, Spriteh, Spritehide, Spriteload, Spritemove, Spriteo, Spritepoly, Spriteplace, Spriter, Sprites, Spriteshow, Spriteslice, Spritetext, Spritev, Spritew, Spritex, Spritey
Graphics - Other
Keyboard and User Input
Alert, Confirm, Input, Input Float, Input Integer, Input String, Key, Keypressed, Prompt
Mathematics
Abs, Acos, Asin, Atan, Ceil, Cos, Degrees, Exp, Float, Floor, Int, IsNumeric, Log, Log10, Radians, Rand, Round, Seed, Sin, Sqr, Tan
Mouse
Clickb, Clickclear, Clickx, Clicky, Mouseb, Mousex, Mousey,
Network Communications
Freenet, NetAddress, NetClose, NetConnect, NetData, NetListen, NetRead, NetWrite
Port Input/Output
Printing
Printercancel, Printeroff, Printeron, Printerpage
Program Control
Begin Case / Case / End Case, Call, Continue Do, Continue For, Continue While, Do / Until, End, Exit Do, Exit For, Exit While, For / Next, For Each / 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, Ljust, Lower, LTrim, MD5, Mid, Midx, Replace, Replacex, Right, Rjust, RTrim, Serialize, String, Trim, Unserialize, Upper, Zfill
Settings (Persistent)
Sound
Sound - In Memory
SoundID, SoundLength, SoundLoad, SoundLoadRaw, SoundPause, SoundPlay, SoundPlayer, SoundPlayerOff, SoundPosition, SoundSeek, SoundState, SoundStop, SoundSystem, SoundVolume, SoundWait, Unload
Sound - Tone Generation
SoundEnvelope, SoundFade, SoundHarmonics, SoundLoop, SoundSampleRate, SoundWaveform
Text Output
Time and Date
Day, Hour, Minute, Month, Msec, Second, Year
Other Statements and Functions
EditVisible, GraphToolBarVisible, GraphVisible, Include,MainToolbarVisible, OutputToolBarVisible, OutputVisible, RegexMinimal, Ostype, System, Version
Other Documentation
- Removed Features and Statements
- [[systemrequirements|System