PureBasic User Guide: Full Contents
(Note that this is the contents of the User Guide, and may not contain information about every single aspect of PureBasic. The Reference section of the manual has a complete listing and explanation of everything.)
Part I - Internal and important basic commands
Getting Started
Introduction
About PureBasic
User Guide overview
Conventions used in this guide
How to get PureBasic
Installing and running PureBasic
Using the editor
Your first PureBasic program
Introduction and Requirements
Fundamentals of the PureBasic language
Your first program!
Breakdown and explanation of the program
Summary
Variables
Introduction and Requirements
What are variables?
Variable types
Creating variables
Summary
Simple processing of variables
Introduction and Requirements
Equals
Addition
Subtraction
Multiplication and Division
Operator precedence
Expressions
Summary
Practise exercises
Loops and decisions
Introduction
Comparison operators
Choosing to execute some instructions (If...Else...EndIf)
Choosing one set of instructions from a set (Select...Case...EndSelect)
Repeating instructions a set number of times (For...Next)
Repeating instructions while something is happening (While...Wend)
Repeating instructions until something happens (Repeat...Until)
Exiting loops early (Goto, FakeEndSelect)
Summary
Exercises
Interacting with the user
Introduction
Creating text displays
Displaying text
Reading values from the user
Changing the appearance of the display
Summary
Exercises
String manipulation
Introduction
Conversions between numbers, strings and vice versa
Text searching commands
Cutting up and selecting parts of strings
Character manipulation commands
Summary
Exercises
Working with lots of data
Introduction
Creating arrays
Accessing arrays
Sorting arrays
Creating lists
Accessing lists
Navigating lists
Summary
Exercises
Advanced variable types
Introduction
User defined types (Structure...EndStructure)
(Unions)
(SizeOf)
Summary
Exercises
Structuring code for re-usability
Introduction
(Gosub...Return)
(Procedures)
(Global, Shared, Protected)
Summary
Exercises
Compiler commands
Constants
Including data in your program
Including multiple files in your program
Selective compiling
Summary
Memory access
Introduction
Pointers
Poking and peeking
Addresses of procedures
Label addresses
(Memory library)
Summary
Exercises
Advanced mathematical operations
Introduction
(Math library)
(Bitwise operators)
Summary
Exercises
Debugging your programs
Introduction
The debugger window
Controlling the debugger from your program
Summary
Exercises
Further reading
Hints for further development
Useful online resources
Brief library descriptions