FreeBASIC Manual

[Pages:2409]FreeBASIC Manual

Welcome to FreeBASIC | Getting Help with FreeBASIC

Language Documentation

Keywords - Alphabetical Keywords - Functional Graphics Keywords Operators List

Variables and Data Types Variable Declarations User Defined Types Standard Data Types Standard Data Type Limits Converting Between Data Types Operators Operators Operator Precedence Bitwise Operators & Truth Tables Statements Control Flow Procedures Modularizing Other Preprocessor Escape Sequences In String Literals Meta-statements Intrinsic Defines Error Handling

Tutorials Programmer's Guide Community Tutorials Community Code Library External Libraries Index

Using the FreeBASIC compiler

Installing FreeBASIC | Requirements Running FreeBASIC Using the Command Line | Command Line Options

Debugging with FreeBASIC

Compiler Error Messages Tools used by fbc

FreeBASIC dialects and QBASIC

FreeBASIC and Qbasic | Differences from QB FreeBASIC Dialects

FAQs

Compiler FAQ Graphics Library FAQ

Inline Asm

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

2D Drawing Functions User Input Functions Screen Functions

Supported graphics drivers (backends) Keyboard Scan Codes Default Palettes

Runtime Library FAQ Xbox port FAQ DOS related FAQ Windows related FAQ Linux related FAQ

Miscellaneous

Obsolete Keywords Glossary Miscellaneous Keywords C Standard Library Functions ASCII Character Codes Runtime Error Codes C/C++ vs. FreeBASIC syntax comparison C/C++ vs. FreeBASIC integer data type comparison

Hacking on FreeBASIC

Developer's Table of Contents

This document last compiled : 2016/01/31 14:20:41 from

Welcome to FreeBASIC

Welcome to our world! This page is an overview of our online warehouse of knowledge. Enjoy your surfing and we hope this will be the first of many visits.

Introduction FreeBASIC is a free 32-bit compiler for the BASIC language. It is open source and licensed under the GPL. It is designed to be syntax compatible with QuickBASIC, while expanding on the language and capabilities. It can create programs for MS-Windows, DOS and Linux, and is being ported to other platforms. See About FreeBASIC and Main Features.

Latest Version FreeBASIC is a beta release compiler and development is ongoing. With each full update, many features are added, and bugs from previous releases are fixed. To see the latest version available, visit on SourceForge, or on FreeBASIC's official website.

Requirements and Installation Minimum hardware is listed on the Requirements page. Visit our Installation page for setting up FreeBASIC on your computer.

Running FreeBASIC is a compiler and as such is not packaged with an IDE (Integrated Development Editor), although there are a few IDE's available. For information on using FreeBASIC without an IDE, see Running.

Compatibility with QuickBASIC FreeBASIC is designed to be syntax compatible with QuickBASIC. For best code-compatibility with QuickBASIC, the QB dialect can be used when compiling source code. See FreeBASIC Dialects and Differences from QB.

Documentation All official documentation can be found online in the wiki at . The online documentation is the most upto-date resource available. In all cases it can be regarded as the correct version. The downloadable versions of the manual are snapshots of the documentation available at a particular time and should be mostly correct for a specific released version of the compiler. However, we do not maintain multiple versions of the documentation so there may be some discrepancies.

Starting points in the Manual Table of Contents Getting Help with FreeBASIC Programmer's Guide

Starting points on the Web Official Website at Official Forums at Official Archive at

Thank you for using FreeBASIC. Happy coding!

Getting help with FreeBASIC

There are several options available for getting help with FreeBASIC.

The Manual This huge user's manual is full of information that can help you learn to write programs using FreeBASIC.

The manual is available online at . There is a search box at the bottom of every page to help you find what you're looking for.

If you are unfamiliar with FreeBASIC or the documentation, you may find these pages a good place to start:

Table of Contents Programmer's Guide Library Headers Index Glossary Compiler FAQ Graphics Library FAQ Runtime Library FAQ

A downloadable manual (in CHM format) is available from the sourceforge project page at which features a full table of contents, searching capabilities, an index, plus all the same content as the online version.

Searching the manual on or offline is an excellent place to start finding help about how to write and use FreeBASIC programs.

Examples and Source Code In the ./examples directory located where FreeBASIC was installed on your system are hundreds of examples to be compiled and run. Most of the external library examples will need additional libraries to be downloaded to allow them to work. See Library Headers Index for a full list.

FreeBASIC's official code archive is located at . This archive hosts user contributed libraries and tools and has links to source code located on other websites.

Tutorials Community created tutorials about FreeBASIC can be found at CommunityTutorials. Some selected tutorials are included in this manual.

FreeBASIC Forum An active community forum can be found at with several sub-forums. The forum has a search feature that can help you find answers to questions or problems that may have already been asked and solved. First do a search for your problem, if you can't find the answer then post a message in one of the sub-forums.

Chat IRC or Internet Relay Chat is a great way to chat with the developers and other users, some of whom are very knowledgeable. There are several ways to connect to IRC, if you know what you're doing simply join #freebasic on FreeNode.

If you haven't the foggiest what IRC is and you have Java installed, you can simply go here.

If you're trying to get help, the most important thing is to be patient. Sometimes you won't get a reply right away. Stick around or check back and the Community will try and assist you.

Alphabetical Keywords List

Alphabetical listing of keywords, macros and procedures. Operators . _ # $ A B C D E F G H I K L M N O P R S T U V W X Y Z

Operators See Operator List

. ...

_ __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__

K Kill

L LBound LCase Left Len Let Lib Line Line Input Line Input # LoByte LOC Local Locate Lock LOF Log Long LongInt Loop LoWord Lpos LPrint

__FB_LINUX__

__FB_MAIN__

__FB_MIN_VERSION__

M

__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__

N

__FB_VER_MINOR__

__FB_VER_PATCH__

__FB_VERSION__

__FB_WIN32__

__FB_XBOX__

__FILE__

__FILE_NQ__

__FUNCTION__

__FUNCTION_NQ__ O

LSet LTrim

Mid (Statement) Mid (Function) Minute MKD MkDir MKI MKL MKLongInt MKS MKShort Mod Month MonthName MultiKey MutexCreate MutexDestroy MutexLock MutexUnlock

Naked Name Namespace Next New New (Placement) Next (Resume) Not Now

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download