Keyword Reference - By usage

From QB64 Wiki

Jump to: navigation, search

Download the QB64 WIKI for Offline Reference!.


If FireFox does not copy page example code correctly use another browser. There is nothing wrong with this WIKI!

If you have a USER "workaround" for this problem, please post a note in the QB64 Community forum so we can post it here.

If code examples only display partial code, hit the browser Refresh button!

For discussions about this WIKI goto the QB64 Community Development Forum.

Go to Alphabetical keywords

Keywords beginning with _underscore can only be compiled in QB64.

Keywords without the underscore at the beginning should work with both QB 4.5 and QB64.

Graphics:

Contents

_A

_B

_C

_D

_F

_G

_H

_L

_N

_P

_R

_S

_W

C

D

G

L

P

S

V

(Return to Table of Contents)

Fonts:

_F

_L

_P

(Return to Table of Contents)

Sound:

_S

B

O

P

S

(Return to Table of Contents)

User input:

_M

I

K

L

O

P

S

(Return to Table of Contents)

Text on screen:

C

I

K

L

P

S

T

  • TAB (function)

V

W

(Return to Table of Contents)

Controlling program flow:

C

D

E

F

G

I

L

N

O

R

S

T

U

W

(Return to Table of Contents)

File I/O:

A

B

C

E

  • EOF (file function)

F

G

  • GET (file I/O statement)

I

K

L

M

N

O

P

R

S

U

W

(Return to Table of Contents)

TCP/IP:

_C

_O

C

G

I

P

(Return to Table of Contents)

Time, date and delay:

_D

_L

D

T

(Return to Table of Contents)

Error trapping:

_E

E

O

R

(Return to Table of Contents)

Memory handling:

C

D

F

  • FRE (function)

P

S

V

(Return to Table of Contents)

Ports:

C

  • COM (statement)

I

  • INP (function)

O

(Return to Table of Contents)

Converting, defining and dimensioning variables:

QB64 keywords:

_B

_C

_D

_F

_I

_M

_P

_U

Qbasic keywords:

A

B

C

D

H

I

L

M

O

R

S

T

V

  • VAL (function)

(Return to Table of Contents)

Getting information about variables:

I

L

M

S

  • SGN (function)

U

(Return to Table of Contents)

Setting/clearing variables and manipulating them:

_R

A

E

  • ERASE (array statement)

L

M

R

S

T

  • TAB (function)

U

(Return to Table of Contents)

Subs and functions, modules, libraries and external programs:

A

B

C

D

E

F

G

I

R

S

(Return to Table of Contents)

Mathematical Functions:


  • + (addition operation)
  • - (subtraction operation)
  • * (multiplication operation)
  • / (decimal point division operation)
  • \ (integer division operation)
  • ^ (exponential operation)
  • ATN (function)
  • CDBL (closest double rounding function)
  • CINT (closest integer rounding function)
  • CLNG (closest long integer rounding function)
  • COS (function)
  • CSNG (closest single rounding function)
  • EXP (function)
  • FIX (integer rounding function)
  • INT (integer rounding function)
  • LOG (function)
  • MOD (integer remainder operation)
  • SIN (function)
  • SQR (function)
  • TAN (function)

See also: Bit Logical Operations:

(Return to Table of Contents)

Bit Logical Operations:

  • AND (operator)
  • EQV (operator)
  • IMP (operator)
  • OR (operator)
  • NOT (operator)
  • XOR (operator)

(Return to Table of Contents)

Conditional Operations:

  • AND (boolean)
  • OR (boolean) (OR returns true if one or the other argument are true)
  • XOR (boolean) (extended OR, only if either one argument or the other is true do XOR return true - not if both are true)

See also the category "Bit operations:" above (the operators can be used when comparing) but most importantly:


  • XOR (XOR (boolean) explains the use when comparing values)
  • NOT (reverses the condition, NOT a = 2 equals to a <> 2)

(Return to Table of Contents)

Data:

(Return to Table of Contents)

DOS/OS and Environment:


(Return to Table of Contents)

Printer:

(Return to Table of Contents)

Unclassified:

  • _ICON (statement) (set the icon of the program)
  • _TITLE (statement) (set the title of the program)
  • _EXIT (function) (checks for external close signals, like the [X] button and CTRL-Break)


  • RANDOMIZE (statement) (randomize RND function output)
  • REM (statement) (remark, you can also use ')
  • RND (function) (retrieves a random number)
  • SIGNAL (statement) (reserved for OS/2 protected mode systems)
  • TO (statement) (multi-purpose statement to specify a range)

(Return to Table of Contents)


Symbols:

QB64 and QB Symbols:
[Note: All symbols below can also be used inside of literal strings except for quotation marks!]


Print or file Formatting
  •  ; (Semicolon after a PRINT stops the invisible cursor at end of the printed value.)
  • , (Comma after a PRINT tabs the invisible cursor past the end of the printed value.)


Program Code Markers
  • ' (Apostrophe denotes programmer comment, ignore code line or Metacommand. Same as using REM.)
  • , (SUB or FUNCTION parameter separator. DATA value separator)
  •  : (Colons can be used to separate two statements on one code line.)
  • () (math or conditional procedure order, a SUB or FUNCTION parameter holder or pass by value indicator)
  • $ (prefix denotes a Qbasic Metacommand. REM or ' precede the commands)

(Return to Table of Contents)

Variable Name Type Suffixes
  • $ (STRING character type: 1 byte)
  • ~ (_UNSIGNED numerical type when it precedes the 8 numerical suffixes below:) [QB64]
  •  % (INTEGER numerical type: 2 bytes)
  • & (LONG numerical type: 4 bytes)
  • && (_INTEGER64 numerical type: 8 bytes) [QB64] (32 or 64 bit PC only)
  •  ! (SINGLE numerical type: 4 bytes)
  • # (DOUBLE numerical type: 8 bytes)
  • ## (_FLOAT numerical type: 32 bytes) [QB64]
  • ` (_BIT numerical type: 1 bit.) [QB64] (Key below tilde(~): CHR$(96))
  • %% (_BYTE numerical type: 1 byte) [QB64]

(Return to Table of Contents)

Numerical Base Prefixes
  • &B (Binary base 2 Digits 0 or 1) [QB64]
  • &O (Octal base 8 Digits 0 to 7)
  • &H (Hexadecimal base 16: Digits 0 to F)


Mathematical Operations
  • + (Addition operator)
  • - (Subtraction operator or sign)
  • * (Multiplication operator)
  • / (Normal division operator)
  • \ (Long integer division operator)
  • ^ (Exponential operator)
  • MOD (Integer remainder division)


Relational Operations
  • = (Equal to condition)
  • > (Greater than condition)
  • < (Less than condition)
  • <> (Not equal to condition)
  • >= (Greater than or equal to condition)
  • <= (Less than or equal to condition)

(Return to Table of Contents)

References:

(Go to Alphabetical keywords)


(Go to Main Page)


Got a question about something?

Visit the QB64 FAQ

Visit the QB64 Main Site

Visit QB64 Community Forum
Personal tools