Constants in SpecBAS: Difference between revisions
Jump to navigation
Jump to search
(Created page with "category:Specbas Some constants are included in SpecBAS to make some common programming tasks easier. Use them like variables you can't assign to. ==The full list of consta...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[category:Specbas]] | [[category:Specbas]] | ||
Constants are included in SpecBAS to make some common programming tasks easier. Use them like variables you can't assign to. | |||
==The full list of constants:== | ==The full list of constants:== | ||
PI = 3.1415926535897932385 | PI = 3.1415926535897932385 | ||
For use with the FONT NEW command: | For use with the FONT NEW command: | ||
FONT_MONO = 0 | FONT_MONO = 0 | ||
FONT_COLOUR = 1 | FONT_COLOUR = 1 | ||
Constants for identifying keys: | Constants for identifying keys: | ||
KEY_BACKSPACE = 8 | KEY_BACKSPACE = 8 |
Latest revision as of 03:22, 16 January 2011
Constants are included in SpecBAS to make some common programming tasks easier. Use them like variables you can't assign to.
The full list of constants:
PI = 3.1415926535897932385
For use with the FONT NEW command:
FONT_MONO = 0 FONT_COLOUR = 1
Constants for identifying keys:
KEY_BACKSPACE = 8 KEY_TAB = 9 KEY_RETURN = 13 KEY_SHIFT = 16 KEY_CONTROL = 17 KEY_MENU = 18 KEY_PAUSE = 19 KEY_CAPS_LOCK = 20 KEY_ESCAPE = 27 KEY_SPACE = 32 KEY_PG_UP = 33 KEY_PG_DOWN = 34 KEY_END = 35 KEY_HOME = 36 KEY_LEFT = 37 KEY_UP = 38 KEY_RIGHT = 39 KEY_DOWN = 40 KEY_PRINT = 42 KEY_INSERT = 45 KEY_DELETE = 46 KEY_0 = 48 KEY_1 = 49 KEY_2 = 50 KEY_3 = 51 KEY_4 = 52 KEY_5 = 53 KEY_6 = 54 KEY_7 = 55 KEY_8 = 56 KEY_9 = 57 KEY_A = 65 KEY_B = 66 KEY_C = 67 KEY_D = 68 KEY_E = 69 KEY_F = 70 KEY_G = 71 KEY_H = 72 KEY_I = 73 KEY_J = 74 KEY_K = 75 KEY_L = 76 KEY_M = 77 KEY_N = 78 KEY_O = 79 KEY_P = 80 KEY_Q = 81 KEY_R = 82 KEY_S = 83 KEY_T = 84 KEY_U = 85 KEY_V = 86 KEY_W = 87 KEY_X = 88 KEY_Y = 89 KEY_Z = 90 KEY_LWIN = 91 KEY_RWIN = 92 KEY_NUMPAD_0 = 96 KEY_NUMPAD_1 = 97 KEY_NUMPAD_2 = 98 KEY_NUMPAD_3 = 99 KEY_NUMPAD_4 = 100 KEY_NUMPAD_5 = 101 KEY_NUMPAD_6 = 102 KEY_NUMPAD_7 = 103 KEY_NUMPAD_8 = 104 KEY_NUMPAD_9 = 105 KEY_MULTIPLY = 106 KEY_ADD = 107 KEY_SEPARATOR = 108 KEY_SUBTRACT = 109 KEY_DECIMAL = 110 KEY_DIVIDE = 111 KEY_F1 = 112 KEY_F2 = 113 KEY_F3 = 114 KEY_F4 = 115 KEY_F5 = 116 KEY_F6 = 117 KEY_F7 = 118 KEY_F8 = 119 KEY_F9 = 120 KEY_F10 = 121 KEY_F11 = 122 KEY_F12 = 123 KEY_NUM_LOCK = 144 KEY_SCROLL_LOCK = 145