Difference between revisions of "Keyword Reference - By usage"

From QB64 Wiki
Jump to navigation Jump to search
Line 254: Line 254:
 
* [[ON KEY (n)]] (statement)
 
* [[ON KEY (n)]] (statement)
 
* [[ON PEN]] (statement)
 
* [[ON PEN]] (statement)
 +
* [[ON PLAY (n)]] (statement)
 
* [[ON STRIG (n)]] (statement)
 
* [[ON STRIG (n)]] (statement)
 
* [[ON TIMER (n)]] (statement)
 
* [[ON TIMER (n)]] (statement)
Line 284: Line 285:
 
* [[WHILE]] (statement)
 
* [[WHILE]] (statement)
 
* [[WHILE...WEND]] (statement)
 
* [[WHILE...WEND]] (statement)
 
  
 
== File I/O: ==
 
== File I/O: ==

Revision as of 03:36, 7 October 2009

(note; it would be nice if you helped writing explanations for the keywords, also you can review the explanations and see if you can find mistakes, or if information should be added/changed)

Go to: Keyword Reference - Alphabetical

Keywords beginning with _ are QB64 specific.

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


Graphics:

_A

_B

_C

_D

_F

_G

_H

_L

_N

_P

_R

_S

_W

C

D

G

L

P

S

V


Fonts:

_F

_L

_P


Sound:

_S

B

O

P

S


User input:

_M

I

K

L

O

P

S


Text on screen:

C

I

K

L

P

S

T

V

W

Controlling program flow:

C

D

E

F

G

I

L

N

O

R

S

T

U

W

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


Time, date and delay:

_D

_L

D

T


Error trapping:

_E

E

O

R


Memory handling:

D

F

P

S

V


Ports:

C

  • COM (statement)

I

O


Converting, defining and dimensioning variables:

_B

_D

_F

_I

_M

_U


A

B

C

D

H

I

L

M

O

R

S

T

V

Getting information about variables:

I

L

M

S

U


Setting/clearing variables and manipulating them:

_R

E

L

M

R

S

T

U


Subs and functions, modules, libraries and external programs:

A

B

C

D

E

F

G

I

R

S


Math:


Bit operations:

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


When comparing values:


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


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


Data:


DOS/OS and environment:


Printer:


Other:

  • _ICON (set the icon of the program)
  • _TITLE (set the title of the program)
  • RANDOMIZE (statement) (used with RND to randomize the seed)
  • REM (statement) (remark, you can also use ')
  • RND (function) (to retrieve a random number)
  • SIGNAL (statement) (reserved for OS/2 protected mode systems)