Navigation:  thinBasic language > Modules > Core >

Core Equates

Previous pageReturn to chapter overviewNext page

 

During module loading process, the following equates (constants) will be defined.

 

Char equates:

Symbol

Meaning

$BEL

Bell

$BS

Back Space

$CR

Carriage return

$CRLF

Carriage Return & Line Feed

$DQ

Double-Quote

$ESC

Escape

$FF

Form Feed

$LF

Line Feed

$NUL

Null

$SPC

Space

$TAB

Horizontal Tab

$VT

Vertical Tab

 

Switch equates:

Symbol

Meaning

OFF

0

ON

1

%TRUE   or TRUE

1

%FALSE or FALSE

0

%NULL or NULL

0

%ZERO or M_ZERO

0

 

 

 

Math equates:

Symbol

Meaning

M_Pi

3.141592653589793

M_e

2.718281828459045

 

 

 

 

 

 

 

Used for windows handling:

Symbol

Meaning

%SW_HIDE

 

%SW_MAXIMIZE

 

%SW_MINIMIZE

 

%SW_RESTORE

 

%SW_SHOW

 

%SW_SHOWMAXIMIZED

 

%SW_SHOWMINIMIZED

 

%SW_SHOWNA

 

%SW_SHOWNOACTIVATE

 

%SW_NORMAL

 

%SW_SHOWNORMAL

 

 

Used by MSGBOX for dialog style:

Symbol

Meaning

%MB_OK

The message box contains one push button: OK. This is the default.

%MB_OKCANCEL

The message box contains two push buttons: OK and Cancel.

%MB_YESNO

The message box contains two push buttons: Yes and No.

%MB_YESNOCANCEL

The message box contains three push buttons: Yes, No, and Cancel.

%MB_RETRYCANCEL

The message box contains two push buttons: Retry and Cancel.

%MB_ABORTRETRYIGNORE

The message box contains three push buttons: Abort, Retry, and Ignore.

%MB_CANCELTRYCONTINUE

The message box contains three push buttons: Cancel, Try Again, Continue.

%MB_DEFBUTTON1

The first button is the default button.

%MB_DEFBUTTON2

The second button is the default button.

%MB_DEFBUTTON3

The third button is the default button.

%MB_ICONEXCLAMATION

An exclamation-point icon appears in the message box.

%MB_ICONERROR

A stop-sign icon appears in the message box.

%MB_ICONINFORMATION

An icon consisting of a lowercase letter i in a circle appears in the message box.

%MB_ICONQUESTION

A question-mark icon appears in the message box.

%MB_ICONSTOP

A stop-sign icon appears in the message box.

%MB_ICONWARNING

An exclamation-point icon appears in the message box.

%MB_ICONASTERISK

An icon consisting of a lowercase letter i in a circle appears in the message box.

%MB_ICONHAND

A stop-sign icon appears in the message box.

%MB_APPLMODAL

 

%MB_SYSTEMMODAL

 

%MB_TOPMOST

 

%MB_HELP

Adds a Help button to the message box.

 

Used by MSGBOX has possible returning value:

Symbol

Meaning

%IDABORT

 

%IDCANCEL

 

%IDCONTINUE

 

%IDIGNORE

 

%IDNO

 

%IDOK

 

%IDRETRY

 

%IDTRYAGAIN

 

%IDYES

 

%IDTIMEOUT

 

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.6.0.10 Web Site: http://www.thinbasic.com