Table of contents
- Table of Contents
- Welcome to FreeBASIC
- Getting Help with FreeBASIC
-
Language Documentation
-
Keywords - Alphabetical
- Operators
- .
-
_
- __DATE__
- __Date_Iso__
- __Fb_64Bit__
- __FB_ARGC__
- __FB_ARGV__
- __Fb_Arm__
- __Fb_Asm__
- __Fb_Backend__
- __FB_BIGENDIAN__
- __FB_BUILD_DATE__
- __FB_CYGWIN__
- __FB_DARWIN__
- __FB_DEBUG__
- __FB_DOS__
- __FB_ERR__
- __Fb_Fpmode__
- __Fb_Fpu__
- __FB_FREEBSD__
- __Fb_Gcc__
- __FB_LANG__
- __FB_LINUX__
- __FB_MAIN__
- __FB_MIN_VERSION__
- __FB_MT__
- __FB_NETBSD__
- __FB_OPENBSD__
- __FB_OPTION_BYVAL__
- __FB_OPTION_DYNAMIC__
- __FB_OPTION_ESCAPE__
- __FB_OPTION_EXPLICIT__
- __Fb_Option_Gosub__
- __FB_OPTION_PRIVATE__
- __FB_OUT_DLL__
- __FB_OUT_EXE__
- __FB_OUT_LIB__
- __FB_OUT_OBJ__
- __Fb_Pcos__
- __FB_SIGNATURE__
- __FB_SSE__
- __Fb_Unix__
- __Fb_Vectorize__
- __FB_VER_MAJOR__
- __FB_VER_MINOR__
- __FB_VER_PATCH__
- __FB_VERSION__
- __FB_WIN32__
- __FB_XBOX__
- __FILE__
- __FILE_NQ__
- __FUNCTION__
- __FUNCTION_NQ__
- __LINE__
- __PATH__
- __TIME__
- #
- $
- A
- B
-
C
- Call
- CAllocate
- Case
- Cast
- Cbool
- CByte
- CDbl
- cdecl
- Chain
- ChDir
- Chr
- CInt
- Circle
- Class
- Clear
- CLng
- CLngInt
- Close
- Cls
- Color
- Command
- Common
- CondBroadcast
- CondCreate
- CondDestroy
- CondSignal
- CondWait
- Const
- Const (Member)
- Const (Qualifier)
- Constructor
- Constructor (Module)
- Continue
- Cos
- CPtr
- CShort
- CSign
- CSng
- CsrLin
- CUByte
- CUInt
- CULng
- CULngInt
- CUnsg
- CurDir
- CUShort
- Custom (Graphics Put)
- CVD
- CVI
- CVL
- CVLongInt
- CVS
- CVShort
-
D
- Data
- Date
- DateAdd
- DateDiff
- DatePart
- DateSerial
- DateValue
- Day
- Deallocate
- Declare
- DefByte
- DefDbl
- defined
- DefInt
- DefLng
- Deflongint
- DefShort
- DefSng
- DefStr
- DefUByte
- DefUInt
- Defulongint
- DefUShort
- Delete
- Destructor
- Destructor (Module)
- Dim
- Dir
- Do
- Do...Loop
- Double
- Draw
- Draw String
- DyLibFree
- DyLibLoad
- DyLibSymbol
- E
- F
- G
- H
- I
- K
- L
- M
- N
-
O
- Object
- Oct
- OffsetOf
- On Error
- On...Gosub
- On...Goto
- Once
- Open
- Open Com
- Open Cons
- Open Err
- Open Lpt
- Open Pipe
- Open Scrn
- Operator
- Option()
- Option Base
- Option ByVal
- Option Dynamic
- Option Escape
- Option Explicit
- Option Gosub
- Option Nogosub
- Option NoKeyword
- Option Private
- Option Static
- Or
- Or (Graphics Put)
- OrElse
- Out
- Output
- Overload
- Override
-
P
- Paint
- Palette
- pascal
- PCopy
- Peek
- PMap
- Point
- Pointcoord
- Pointer
- Poke
- Pos
- Preserve
- PReset
- ?
- Print #
- ? #
- Print Using
- ? Using
- Private
- Private: (Access Control)
- ProcPtr
- Property
- Protected: (Access Control)
- Pset (Statement)
- Pset (Graphics Put)
- Ptr
- Public
- Public: (Access Control)
- Put (Graphics)
- Put # (File I/O)
- R
-
S
- SAdd
- Scope
- Screen
- Screen (Console)
- ScreenCopy
- ScreenControl
- ScreenEvent
- ScreenInfo
- ScreenGLProc
- ScreenList
- ScreenLock
- ScreenPtr
- ScreenRes
- ScreenSet
- ScreenSync
- ScreenUnlock
- Second
- Seek (Statement)
- Seek (Function)
- Select Case
- SetDate
- SetEnviron
- SetMouse
- SetTime
- Sgn
- Shared
- Shell
- Shl
- Shr
- Short
- Sin
- Single
- SizeOf
- Sleep
- Space
- Spc
- Sqr
- Static
- Static (Member)
- stdcall
- Step
- Stick
- Stop
- Str
- Strig
- String (Function)
- String
- StrPtr
- Sub
- Sub (Member)
- Swap
- System
- T
- U
- V
- W
- X
- Y
- Z
-
Keywords - Functional
- Arrays
- Bit manipulation
- Compiler switches
- Console
- Data types and declarations
- Date and time
- Debug support
- Error handling
- Files
-
Graphics
- Add (Graphics Put)
- Alpha (Graphics Put)
- And (Graphics Put)
- Circle
- Cls
- Color
- Custom (Graphics Put)
- Draw
- Draw String
- Event (Message Data From Screenevent)
- Flip
- Get (Graphics)
- ImageConvertRow
- ImageCreate
- ImageDestroy
- ImageInfo
- Line
- Or (Graphics Put)
- Paint
- Palette
- PCopy
- PMap
- Point
- Pointcoord
- PReset
- PSet
- Pset (Graphics Put)
- Put (Graphics)
- RGB
- RGBA
- Screen
- ScreenControl
- ScreenCopy
- ScreenEvent
- ScreenInfo
- ScreenGLProc
- ScreenList
- ScreenLock
- ScreenPtr
- ScreenRes
- ScreenSet
- ScreenSync
- ScreenUnlock
- Trans (Graphics Put)
- View (Graphics)
- Window
- Xor (Graphics Put)
- Hardware access
-
Assignment Operators
- =[>] (Assignment)
- &= (Concatenate And Assign)
- += (Add And Assign)
- -= (Subtract And Assign)
- *= (Multiply And Assign)
- /= (Divide And Assign)
- \= (Integer Divide And Assign)
- ^= (Exponentiate And Assign)
- Mod= (Modulus And Assign)
- And= (Conjunction And Assign)
- Eqv= (Equivalence And Assign)
- Imp= (Implication And Assign)
- Or= (Inclusive Disjunction And Assign)
- Xor= (Exclusive Disjunction And Assign)
- Shl= (Shift Left And Assign)
- Shr= (Shift Right And Assign)
- Let (Assignment)
- Let() (Assignment)
- Arithmetic Operators
- Bitwise operators
- Short Circuit operators
- Math
- Memory
- Meta Commands
- Miscellaneous
- Modularizing
- Multithreading
- OS / shell
- Pointers
-
Predefined symbols
- __DATE__
- __Date_Iso__
- __Fb_64Bit__
- __FB_ARGC__
- __FB_ARGV__
- __Fb_Arm__
- __FB_BIGENDIAN__
- __FB_BUILD_DATE__
- __FB_CYGWIN__
- __FB_DARWIN__
- __FB_DEBUG__
- __FB_DOS__
- __FB_ERR__
- __FB_FREEBSD__
- __FB_LANG__
- __FB_LINUX__
- __FB_MAIN__
- __FB_MIN_VERSION__
- __FB_NETBSD__
- __FB_OPENBSD__
- __FB_OPTION_BYVAL__
- __FB_OPTION_DYNAMIC__
- __FB_OPTION_ESCAPE__
- __FB_OPTION_EXPLICIT__
- __Fb_Option_Gosub__
- __FB_OPTION_PRIVATE__
- __FB_OUT_DLL__
- __FB_OUT_EXE__
- __FB_OUT_LIB__
- __FB_OUT_OBJ__
- __FB_SIGNATURE__
- __FB_SSE__
- __FB_VERSION__
- __FB_VER_MAJOR__
- __FB_VER_MINOR__
- __FB_VER_PATCH__
- __FB_WIN32__
- __FB_XBOX__
- __FILE__
- __FILE_NQ__
- __FUNCTION__
- __FUNCTION_NQ__
- __FB_MT__
- __LINE__
- __PATH__
- __TIME__
- False
- True
- Preprocessor
-
Procedures
- ...
- Abstract (Member)
- Alias
- Any
- Base (Initialization)
- Base (Member Access)
- Byref (Parameters)
- Byref (Function Results)
- ByVal
- Call
- cdecl
- Const (Member)
- Constructor
- Constructor (Module)
- Destructor
- Destructor (Module)
- Declare
- Function
- Function (Member)
- Lib
- Naked
- Operator
- Overload
- Override
- pascal
- Private (Member)
- Protected (Member)
- Property
- Public (Member)
- Static (Member)
- Sub
- Sub (Member)
- stdcall
- This
- va_arg
- va_first
- va_next
- Virtual (Member)
- Program flow
- String functions
- String and number conversion
- Type casting/conversion
- User input
-
Graphics Keywords
- Add
- Alpha
- And (Graphics Put)
- BLoad
- BSave
- Circle
- Color
- Custom
- Draw
- Draw String
- Event (Message Data From Screenevent)
- Flip
- ImageConvertRow
- ImageCreate
- ImageDestroy
- ImageInfo
- Get (Graphics)
- GetJoystick
- GetMouse
- Inp
- Line (Graphics)
- MultiKey
- Out
- Or (Graphics Put)
- Paint
- Palette
- PCopy
- PMap
- Point
- Pointcoord
- PReset
- PSet
- Pset (Graphics Put)
- Put (Graphics)
- RGB
- RGBA
- Screen (Graphics)
- ScreenControl
- ScreenCopy
- ScreenEvent
- ScreenGLProc
- ScreenInfo
- ScreenList
- ScreenLock
- ScreenPtr
- ScreenRes
- ScreenSet
- ScreenSync
- ScreenUnlock
- SetMouse
- Trans
- View (Graphics)
- Wait
- Window
- WindowTitle
- Xor (Graphics Put)
-
Operators List
-
Assignment Operators
- =[>] (Assignment)
- &= (Concatenate And Assign)
- += (Add And Assign)
- -= (Subtract And Assign)
- *= (Multiply And Assign)
- /= (Divide And Assign)
- \= (Integer Divide And Assign)
- ^= (Exponentiate And Assign)
- Mod= (Modulus And Assign)
- And= (Conjunction And Assign)
- Eqv= (Equivalence And Assign)
- Imp= (Implication And Assign)
- Or= (Inclusive Disjunction And Assign)
- Xor= (Exclusive Disjunction And Assign)
- Shl= (Shift Left And Assign)
- Shr= (Shift Right And Assign)
- Let (Assignment)
- Let() (Assignment)
- Type Cast Operators
- Arithmetic Operators
- Indexing Operators
- String Operators
- Relational Operators
- Bitwise Operators
- Short Circuit Operators
- Preprocessor Operators
- Pointer Operators
- Type or Class Operators
- Memory Operators
- Iteration Operators
-
Assignment Operators
- Variables and Data Types
-
Operators
-
Operators
-
Assignment operators
- Operator =[>] (Assignment)
- Operator &= (Concatenate And Assign)
- Operator += (Add And Assign)
- Operator -= (Subtract And Assign)
- Operator *= (Multiply And Assign)
- Operator /= (Divide And Assign)
- Operator \= (Integer Divide And Assign)
- Operator ^= (Exponentiate And Assign)
- Operator Let (Assignment)
- Operator Let() (Assignment)
- Operator Mod= (Modulus And Assign)
- Operator And= (Conjunction And Assign)
- Operator Eqv= (Equivalence And Assign)
- Operator Imp= (Implication And Assign)
- Operator Or= (Inclusive Disjunction And Assign)
- Operator Xor= (Exclusive Disjunction And Assign)
- Operator Shl= (Shift Left And Assign)
- Operator Shr= (Shift Right And Assign)
- Arithmetic operators
- Conditional operators
- Logical operators
- Short circuit operators
- Indexing operators
- String operators
- Preprocessor operators
- Pointer operators
- Type or Class operators
- Memory operators
- Iterating operators
-
Assignment operators
- Operator Precedence
- Bitwise Operators & Truth Tables
-
Operators
- Statements
-
Other
- Preprocessor
- Escape Sequences In String Literals
- Meta-statements
- Intrinsic Defines
- Error Handling
- Inline Asm
-
Keywords - Alphabetical
-
Runtime Library Reference
- Array Functions
- Bit Manipulation
- Console Functions
- Date and Time Functions
- Error Handling Functions
- File IO Functions
- Mathematical Functions
- Memory Functions
- Operating System Functions
- String Functions
- Threading Support Functions
- User Input Functions
- Graphics Library Reference
-
Tutorials
-
Programmer's Guide
- Getting Started
- Source Files
- Lexical Conventions
- Variables and Datatypes
- Declarations
- User Defined Types
-
Statements and Expressions
-
Operators List
-
Assignment operators
- Operator =[>] (Assignment)
- Operator &= (Concatenate And Assign)
- Operator += (Add And Assign)
- Operator -= (Subtract And Assign)
- Operator *= (Multiply And Assign)
- Operator /= (Divide And Assign)
- Operator \= (Integer Divide And Assign)
- Operator ^= (Exponentiate And Assign)
- Operator Let (Assignment)
- Operator Let() (Assignment)
- Operator Mod= (Modulus And Assign)
- Operator And= (Conjunction And Assign)
- Operator Eqv= (Equivalence And Assign)
- Operator Imp= (Implication And Assign)
- Operator Or= (Inclusive Disjunction And Assign)
- Operator Xor= (Exclusive Disjunction And Assign)
- Operator Shl= (Shift Left And Assign)
- Operator Shr= (Shift Right And Assign)
- Arithmetic operators
- Conditional operators
- Logical operators
- Short circuit operators
- Indexing operators
- String operators
- Preprocessor operators
- Pointer operators
- Type or Class operators
- Memory operators
- Iterating operators
-
Assignment operators
- Operator Precedence
- Control Flow Statements
-
Operators List
- Procedures
- Making Binaries
- Preprocessor
- Other Topics
- Community Tutorials
- Community Code Library
- External Libraries Index
-
Programmer's Guide
-
Using the FreeBASIC compiler
- Installing FreeBASIC
- Requirements
- Running FreeBASIC
- Using the Command Line
-
Command Line Options
- @< file >
- -a < name >
- -arch < type >
- -asm < format >
- -b < name >
- -c
- -C
- -d < name=val >
- -dll
- -dylib
- -e
- -ex
- -exx
- -export
- -forcelang <name>
- -fpmode < type >
- -fpu < type >
- -g
- -gen < backend >
- -i < name >
- -include < name >
- -l < name >
- -lang < name >
- -lib
- -m < name >
- -map < name >
- -maxerr < val >
- -mt
- -nodeflibs
- -noerrline
- -o < name >
- -O < level >
- -p < name >
- -pic
- -pp
- -prefix < path >
- -print < option >
- -profile
- -r
- -R
- -rr
- -RR
- -s < name >
- -showincludes
- -static
- -target < platform >
- -t < value >
- -v
- -vec < level >
- -version
- -w < value >
- -Wa < opt >
- -Wc < opt >
- -Wl < opt >
- -x < name >
- -z < value >
- Debugging with FreeBASIC
- Compiler Error Messages
- Tools used by fbc
- FreeBASIC dialects and QBASIC
- FAQs
- Miscellaneous
- Hacking on FreeBASIC