Index

Symbols

+ - operator 50

+ button 210

.BAS files 209

compiling 94

.RSC files 209

A

accepting characters 30

ACLOCK.BAS 32

action games

time tracking 31

actions 9

component 63

utility 31

active windows 28

adding

BASIC code 20 , 206

buttons 14

components 202 , 203

labels 14

alarm components 31 , 105

AND OR XOR operator 50

angles 68 , 85

applications 25 , 94

debugging 197 , 202

designing 202

life cycle of 25

Program Launcher 25

running 197 , 209

appointment calendars

time tracking 31

arguments, routine 48

arrays 44

arrow, broken 14 , 203

assignments

components of 50

examples 50

available colors 33

B

background colors 39

backslash (/) 36

backtraces, viewing 198

BAS files

compiling 94

suffix 209

basepower, computing 82

BASIC code 10

adding 206

editing 37

organization of 35

reading 39

BITAND operator 50

bitwise arithmetic 34

BITXOR operator 50

blue background 39

breakpoints 197 , 198

definition of 39

pausing in routines 199

removing 199

setting 199

broken arrow 14 , 203

bugs 59

Builder

debugging buttons 197

overview 12

testing with 208

Builder, NewBASIC 201

built-in routines and operators 64

busy components 106

button 30 , 108

buttons

adding 14

coding 20

editing properties 16

table of code 22

C

CALENDAR.BAS 31

calendars 31

Call Stack 198 , 199

calling functions and subroutines 63

caption property 204

catalog, UI 210

characters

accepting and rejecting 30

children 26

properties of 26

choice components 27

classes 100

clipboard components 110

clipper components 112

clocks 31 , 32

code

about BASIC 10

colors of 39

organization 35

remarking out 42

Code Editor 9 , 13

coding the program 20 , 206

colors

background in code 39

bitwise arithmetic 34

constants 33

custom 33

opacity 34 , 186

specifying 32

combining strings 43

commenting out code 42

common properties 100

compare function 87

compiling 209

.BAS files 94

complex variable types 46

Component Palette 13

component properties 48

dialog box 212

naming rules 48

components 9

actions 63

adding new 203

alarm 105

busy 106

button 30 , 108

changing properties 204

choice 27

clipboard 110

clipper 112

creating 79

database 113

definition 9

dialog 121

display 123

entry 28 , 126

floaters 135

forms 137

gadgets 139

groups 150

hierarchy 26

keyboard 151

labels 154

launcher 154

list 159

moving 15 , 204

palette 9 , 202 , 210

parents and children 26

pictures 161

popups 162

resizing 210

scrollbars 163

service 27

sound 166

spacer 167

specifying properties 16

syntax of 92

table 171

text 186

TimeDate 191

timer 194

toggle 194

types 97

variable types 46

concatenating strings 43

concatenation operator 50

concepts 25

constants 49

color 32

standard color 33

storing 49

constructs

DO-WHILE 55

flow control 51

FOR-TO 53

GOTO 58

IF-THEN 51

SELECT-CASE 56

context 26

Continue button 197

controls (see components)

conventions, manual 8

cosines 68

crashes 59

recovery 198

creating

components 79

new subroutines 38

routines 38

cursor appearance 16

cursor, moving 40

custom

colors 33

components (see gadgets)

filters 30

D

database components 113

date

ranges 68

utilities 31

Debug menu 202

debugging

breakpoints, setting 39

buttons 197

Debugger 9

examples 208

finishing current routine 197

global and local variables 199

pausing and resuming 197

routine stepping 197

running 197

stopping the code 197

declaring variables 46

default routines and operators 64

deleting routines 39

design, making precise 18

designing applications 202

designing the forms 14

DestroyModule 69

dialogs

components 121

parents and children in 26

disabled components 109 , 204 , 212

display components 123

divide/multiply operator 50

documenting your code 42

DO-UNTIL constructs 55

DO-WHILE constructs 55

E

Edit menu 202

editing

BASIC code 37 , 39

keyboard shortcuts 40

routines 23 , 38

editor 13

opening 19

Editor Window 203

illustration of 37

empty strings 75

emulation 208

enabled components 109 , 204 , 212

entry components 28 , 126

definition 29

equality operator 50

errors 59

finding 198

generating 61

getting current 61

handlers 59

number, associated 62

RESUME statement 59

trapping 59 , 61

event handlers 36 , 92 , 206

events 9

exclusive options 27

EXIT-DO constructs 56

exiting NewBASIC 11

exponentials 70

EXPORT keyword 47 , 93 , 94

expressions vs. property name 49

F

features of NewBASIC 9

File menu 202

filing 209

filters

custom 30

properties 30

standard 30

finding errors 198

Finish button 197

float variable types 43 , 50

floater components 135

flow control constructs 51

focus 28

forcing errors 61

forms 210

component 137

designing 14

editing properties 17

overview of 13

resizing 14

starting with 203

FOR-TO constructs 53

freeing up resources 89

functions 37

arguments 48

calling 63

funky (see Make Funky)

G

gadgets 8 , 26 , 27 , 30 , 139

defined 98

generating errors 61

GetError() command 61 , 71

global keyword 47

global variables 199

glossary 8

GOTO constructs 58

Graphical Forms Builder 9

greater /less than operator 50

greyed out components 204 , 212

group components 150

H

halting the code 59 , 197

handle 8

handling errors 59

hexadecimal numbers 72

hidden applications 26

hierarchy

dialog 26

of components 26 , 27

I

icon, New Deal Office 11

IF-THEN constructs 51

important terms 8

inputting text 28

integer variables 43

non-zero 26

integers 50

Integrated Development Environment (IDE) 201

introduction 9

invoke, UI 8

K

keyboard

components 151

shortcuts 40

special key strings 153

keywords

EXPORT 47 , 93

GLOBAL 47

remark 42

L

label components 154

labels, adding 14

launcher component 154

layout of screen 14 , 204

less/greater than operator 50

lines 35

list components 30 , 159

loading modules 77 , 93

local variables 47 , 199

logarithms 78

logical NOT operator 50

long variable 43 , 50

loops 55

M

Main Builder Window 13 , 201

Main Window 211

Make Funky example 205 , 208

MakeComponents 79

manual conventions 8

memory

available 72

freeing up 25

menus 202

minus/plus operator 50

MOD operator 50 , 82

modal windows 28 , 31

module

opening 13

module_init() routine

running 197

storing constants 49

modules 9

loading 77 , 93

program 25

variable types 46

mouse pointer 14 , 203

moving components 15 , 204

multi-line text fields 29

multiply, divide operator 50

N

naming

components 48

property 204

strings 49

New Deal

IDE 201

programs 201

New Deal Office icon 11

new routines 38

New Subroutine button 38

NewBASIC

features 9

introduction 9

starting and exiting 11

NewBASIC Builder

application 201

startup window 201

non-modal windows 28

non-zero integer variable 26

NOT operators 50 , 82

null parents 26 , 102

numbers

types

floats 50

integer 50

long 50

O

objects 9

octal representations 82

opacity 34

opening

editor 19

modules 13

new routines 38

operators

* / MOD 50

+ - 50

< <= > >= 50

= <> 50

AND OR XOR 50

BITAND 50

BITXOR 50

built-in 64

NOT 50

option buttons 27

OR operators 82

organization of code 35

P

palette 202

component 210

parents 26 , 79

null 26

properties of 26

strange 26

Pause button 197

pausing in routines 199

picture components 161

planning the project 10

plus button 210

plus/minus operator 50

polling 31

popup components 162

Preface 7

preserving routine text 40

pressed event 22

primary windows 203

program

content of 9

modules 25

objects 9

running 24

Program Launcher 25

properties 9

caption 204

common 100

component 16 , 48

editing 204

enabled 204

filter 30

name 204

parent and children 26

proto 36

specific 213

table of settings 18

using expressions 49

visible 204

Properties box 13 , 203

proto property 36

purple background 39 , 199

Q

question mark (?) button 202

quick keys 40

quitting a program 197

R

radio buttons 27

RaiseError() command 61 , 83

raising errors 59

reading BASIC code 39

recovering crashes 198

red background 39 , 199

rejecting characters 30

REM keyword 42

remarking out code 42

renaming routines 39

resizing a form 14

resizing components 204 , 210

resources, releasing 25

RESUME options 59

resuming a program 197

return values 48 , 63

Routine Step button 197

routines

built-in 64

creating 38

deleting 39

editing 23 , 38

event handler 36

lines of 35

renaming 39

special 36

table of code 23

typical 41

RSC suffix 209

Run button 197

running the program 24

run-time error numbers 62

run-time errors 197

S

Save As 13

saving your work 209

scope, variable 47

screen layout 14

scrollbars 30

components 163

scrolling text fields 29

SELECT-CASE constructs 56

service components 27

shortcuts

keyboard 40

shutting down an application 25

sibling 27

sines 85

Single Step button 197

single-line text fields 29

sleeping devices 31

sound components 166

space characters 86

spacer components 167

special routines 36

specific properties 213

square root function 86

standard filters 30

starting and exiting NewBASIC 11

starting NewBuild 201

stepping, routine 197

Stop button 40 , 197

stopwatches

time tracking 31

storing

data 43

the code 209

strange parents 26

strings 43

concatenating 43

constants 49

empty vs. null 75

STRUCT 45

structures 31

defined 45

subroutines 37

calling 63

new 38

syntax 35

backslash (/) 36

summary of 92

system focus 28

System Launcher program 94

System Services 9

system-modal windows 31

T

table 30

code, tutorial 22

components 171

design properties, tutorial 18

routines, tutorial 23

TalkDemo.BAS 14

terms, important 8

testing the program 208

text

components 186

fields, scrolling 29

getting focus 28

input 28

Unicode 43

text boxes, enlarging 15

text component

editing properties 17

time

and date mechanism 105

ranges 68

tracking 31

TimeDate components 31 , 191

timer components 31 , 194

Toggle Breakpoint button 39 , 199

toggles 30

components 194

Tool types 28

Toolbox 13

tools, overview of 12

tracking time 31

trapping errors 59 , 61

troubleshooting 62

tutorial 11

naming 14

types

floats 50

integer 50

long 50

variable 43

typical routines 41

U

UI catalog 210

undo button 210

Unicode text 43

unloading

applications 94

hidden applications 26

modules 89

preventing 26

unsetting breakpoints 199

Use Geometry box, disabling 14

utility actions

date 31

V

ValidParent() function 91

value lists 57

variable types

array 44

complex 46

component 46

floats 43

integer 43

long 43

module 46

string 43

STRUCT 45

variables

declaring 46

examining 199

local 47

storing data with 43

types 43

visible property 204

W

white background 199

windows

active 28

modal and non-modal 28 , 31

Window menu 202

writing the code 206