Contents
Liberty BASIC 4 Help
Contents
What's New!
Glossary
Liberty BASIC Help
Overview
Installing and Uninstalling
Registering Liberty BASIC
The Liberty BASIC Editor
Editor Preferences
The Liberty BASIC INI file
Writing Programs
FreeForm
Using the Debugger
Lite Debug
Compiler Reporting
Creating a Tokenized File
Using the Runtime Engine
Icon Editor
Lesson Browser
Using a Different Code Editor
Using Inkey$
Using Virtual Key Constants with Inkey$
Error Messages
Error Log Explained
Port I/O
Making API and DLL Calls
TroubleShooting
Language Syntax and Usage
Liberty BASIC Language
Logic and Structure
Logical Line Extension
The NOMAINWIN command
Functions and Subroutines
Branch Labels, GOTO and GOSUB
Conditional Statements
Select Case
Bitwise Operations
Boolean Evaluations
Looping Structures
Recursion
The Timer Statement
Callbacks for API Functions
Arrays, Variables and DATA
Variables
Arrays
Sorting Arrays
Arrays with More than Two Dimensions
READ and DATA
File Operations
File Operations
Sequential Files
Binary Files
Random Access Files
Testing for File Existence
Path and Filename
Mathematics
Mathematics
Numeric Variables
Mathematical Operations
Trigonometry
Numbers and Strings
Date and Time Functions
Text Usage
Text and Characters
String Literals and Variables
Manipulating Characters
Text Mode Display
Text Commands
Graphics
Graphics
Reading Mouse Events and Keystrokes
Graphics Commands
Sprites
Sprite Table of Contents
Sprite Commands
What is a Sprite?
How Do Sprites Work?
Start with the Background
Designate Sprites
Sprite Properties
Drawing and Collision Detection
Flushing Sprite Graphics
Pauses and Timing
Add a Mask
Step by Step
Simple Demo Program
Lander.bas
API and DLL Calls
Calling APIs and DLLs
Informational Resources About APIs/DLLs
What are APIs/DLLs?
How to Make API/DLL calls
Example CallDLL Programs
Using hexadecimal values
Using TYPES with STRUCT and CALLDLL
Passing Strings into API Calls
Caveats
GUI Programming
Graphical User Interface
Sending Commands
A Simple Example
Handle Variables
Understanding Syntax
Size and Placement of Windows
Window Types
Controls - Menus, Buttons, Etc.
Controls and Events
Window and Dialog Commands
Trapping the Close Event
Colors and the Graphical User Interface
How to Specify Fonts
Buit-in Dialogs
Sounds
Mouse, Keyboard and Joystick
Command Reference
Command Reference A-C
Command Reference D-F
Command Reference G-K
Command Reference L-M
Command Reference N-P
Command Reference R-S
Command Reference T-Z
Additional Commands
Reserved Words
Keywords in Alphabetical Order
ABS( n )
ACS( n )
ASC( s$ )
ASN( n )
ATN( n )
BEEP
BMPBUTTON
BMPSAVE
BUTTON
BYREF
CALL
CALLBACK
CALLDLL
CHECKBOX
CHR$( n )
CLOSE #h
CLS
COLORDIALOG
COMBOBOX
CommandLine$
CONFIRM
COS( n )
CURSOR
DATA
DATE$( )
DECHEX$( )
DefaultDir$
DIM array( )
DisplayWidth
DisplayHeight
DO LOOP
Drives$
DUMP
EOF( #h )
END
EXP( n )
EVAL( code$ )
EVAL$( code$ )
FIELD #h, list...
FILEDIALOG
FILES
FONTDIALOG
FOR...NEXT
FUNCTION
GET #h, n
GETTRIM #h, n
GOSUB label
GLOBAL
GOTO label
GRAPHICBOX
GROUPBOX
HBMP( \"name\" )
HEXDEC( \"value\" )
HWND( #handle)
IF THEN
Inkey$
INP(port)
INPUT
INPUT$( #h, n )
INPUTTO$(#h, c$)
INSTR(a$,b$,n)
INT( n )
KILL s$
LEFT$( s$, n )
LEN( s$ )
LET
LINE INPUT
LISTBOX
LOADBMP
LOCATE
LOF( #h )
LOC( #h )
LOG( n )
LOWER$( s$ )
LPRINT
MAINWIN
MAX( )
MAPHANDLE
MENU
MID$( )
MIDIPOS( )
MIN( )
MKDIR( )
NAME a$ AS b$
NOMAINWIN
NOTICE
ON ERROR
ONCOMERROR
OPEN
OPEN \"COMn:...\"
OUT port, byte
Platform$
PLAYMIDI
PLAYWAVE
POPUPMENU
PRINT
PRINTERDIALOG
PrinterFont$
PROMPT
PUT #h, n
RADIOBUTTON
RANDOMIZE
READ
READJOYSTICK
REDIM
REM
REFRESH
RESIZEHANDLER
RESTORE
RESUME
RETURN
RIGHT$( s$, n )
RMDIR( )
RND( n )
RUN s$, mode
SCAN
SEEK
SELECT CASE
SIN( n )
SORT
SPACE$( n )
SQR(n)
STATICTEXT
STOP
STOPMIDI
STR$( n )
STRUCT
STYLEBITS
SUB
TAB( n )
TAN( n )
TEXTBOX
TEXTEDITOR
TIME$( )
TIMER
TITLEBAR
TRACE n
TRIM$( s$ )
TXCOUNT(#handle)
UNLOADBMP
UPPER$( s$ )
USING( )
UpperLeftX
UpperLeftY
VAL( s$ )
Version$
WAIT
WHILE...WEND
Copyright (C) 2003 Shoptalk Systems
Liberty BASIC - http://www.libertybasic.com/