Preface |
|
xv | |
Why Delphi? |
|
xv | |
Purpose of This Book |
|
xvi | |
Outstanding Features |
|
xvi | |
Pedagogical Features |
|
xvii | |
Style Conventions |
|
xviii | |
To the Student |
|
xviii | |
To the Instructor |
|
xix | |
Recommended Coverage |
|
xx | |
Acknowledgments |
|
xxi | |
|
An Introduction to Computers and Computer Science |
|
|
1 | (20) |
|
|
1 | (1) |
|
A Brief History to Computers |
|
|
2 | (7) |
|
|
9 | (1) |
|
Components of a Typical Microcomputer System |
|
|
10 | (2) |
|
|
12 | (1) |
|
The Evolution of Computer Programming Languages |
|
|
13 | (1) |
|
The Development of Delphi |
|
|
14 | (1) |
|
|
15 | (3) |
|
|
15 | (2) |
|
|
17 | (1) |
|
|
18 | (1) |
|
|
19 | (2) |
|
The Delphi Development Environment |
|
|
21 | (40) |
|
|
21 | (1) |
|
The Delphi Design Philosophy |
|
|
22 | (1) |
|
|
23 | (20) |
|
The Delphi Opening Screen |
|
|
23 | (1) |
|
|
23 | (11) |
|
|
34 | (7) |
|
Placing, Moving, and Sizing Components |
|
|
41 | (1) |
|
Accessing Additional Components |
|
|
41 | (1) |
|
Component Naming Conventions |
|
|
42 | (1) |
|
Personalizing the Integrated Development Environment |
|
|
42 | (1) |
|
Help and Online Documentation |
|
|
43 | (1) |
|
|
43 | (9) |
|
|
52 | (2) |
|
|
54 | (4) |
|
|
54 | (3) |
|
|
57 | (1) |
|
|
58 | (1) |
|
|
58 | (1) |
|
|
59 | (2) |
|
|
61 | (14) |
|
|
61 | (1) |
|
The Problem-Solving Process |
|
|
62 | (1) |
|
|
63 | (1) |
|
|
64 | (3) |
|
The Program Development Cycle |
|
|
67 | (1) |
|
|
68 | (2) |
|
|
70 | (1) |
|
|
70 | (1) |
|
|
71 | (1) |
|
|
71 | (1) |
|
|
72 | (3) |
|
|
75 | (46) |
|
|
75 | (1) |
|
|
76 | (1) |
|
Naming, Declaring, and Using Variables |
|
|
77 | (5) |
|
|
82 | (2) |
|
|
84 | (1) |
|
|
85 | (1) |
|
String Operators and Built-in String Routines |
|
|
86 | (3) |
|
|
89 | (2) |
|
|
91 | (1) |
|
Typecasting and Type Conversion Functions |
|
|
92 | (2) |
|
|
94 | (3) |
|
Interactive Input and Output |
|
|
97 | (4) |
|
Output Formatting Routines |
|
|
101 | (1) |
|
|
102 | (1) |
|
|
102 | (2) |
|
|
104 | (4) |
|
CASE STUDY: The Scope Trap |
|
|
108 | (1) |
|
|
109 | (7) |
|
|
109 | (3) |
|
|
112 | (2) |
|
|
114 | (2) |
|
|
116 | (1) |
|
|
117 | (2) |
|
|
119 | (2) |
|
|
121 | (28) |
|
|
121 | (1) |
|
|
122 | (6) |
|
|
122 | (1) |
|
|
123 | (1) |
|
Relational and Boolean Operator Precedence |
|
|
124 | (1) |
|
|
125 | (1) |
|
Expanding and Reducing Boolean Expressions |
|
|
125 | (3) |
|
|
128 | (12) |
|
|
128 | (9) |
|
|
137 | (3) |
|
|
140 | (3) |
|
|
143 | (4) |
|
|
143 | (1) |
|
|
144 | (1) |
|
|
145 | (2) |
|
|
147 | (1) |
|
|
147 | (1) |
|
|
148 | (1) |
|
|
149 | (22) |
|
|
149 | (1) |
|
|
150 | (1) |
|
|
150 | (5) |
|
|
155 | (9) |
|
CASE STUDY: GoodLook Cosmetics Company |
|
|
164 | (2) |
|
|
166 | (2) |
|
|
166 | (1) |
|
|
166 | (1) |
|
|
167 | (1) |
|
|
168 | (1) |
|
|
168 | (1) |
|
|
169 | (2) |
|
|
171 | (20) |
|
|
171 | (1) |
|
|
172 | (1) |
|
Creating a Text File with the Delphi Code Editor |
|
|
172 | (2) |
|
|
174 | (4) |
|
|
178 | (1) |
|
|
178 | (2) |
|
|
180 | (3) |
|
|
183 | (3) |
|
|
186 | (2) |
|
|
186 | (1) |
|
|
186 | (1) |
|
|
187 | (1) |
|
|
188 | (1) |
|
|
189 | (1) |
|
|
190 | (1) |
|
|
191 | (30) |
|
|
191 | (1) |
|
The Modular Design Philosophy |
|
|
192 | (1) |
|
|
193 | (1) |
|
|
194 | (1) |
|
Defining and Using Subprograms |
|
|
195 | (5) |
|
|
200 | (5) |
|
|
205 | (8) |
|
|
213 | (3) |
|
|
213 | (1) |
|
|
214 | (1) |
|
|
215 | (1) |
|
|
216 | (1) |
|
|
217 | (1) |
|
|
218 | (3) |
|
Error-Proofing and Debugging |
|
|
221 | (36) |
|
|
221 | (1) |
|
Importance of Error-Proofing |
|
|
222 | (1) |
|
Types of Programming Errors |
|
|
222 | (1) |
|
|
223 | (6) |
|
|
229 | (5) |
|
|
234 | (1) |
|
Standard Debugging Techniques |
|
|
234 | (2) |
|
|
236 | (10) |
|
CASE STUDY: A Failed Space Mission |
|
|
246 | (1) |
|
CASE STUDY: The Y2K Problem |
|
|
247 | (1) |
|
|
248 | (3) |
|
|
248 | (1) |
|
|
249 | (1) |
|
|
249 | (2) |
|
|
251 | (1) |
|
|
251 | (6) |
|
|
257 | (82) |
|
|
257 | (1) |
|
Static versus Dynamic Data Structures |
|
|
258 | (1) |
|
Enumerated Types and Sets |
|
|
258 | (3) |
|
|
261 | (3) |
|
|
264 | (5) |
|
|
269 | (6) |
|
Passing Arrays to Subprograms |
|
|
275 | (4) |
|
|
279 | (5) |
|
Records and User-Defined Data Types |
|
|
284 | (8) |
|
Pointers and Linked Lists |
|
|
292 | (7) |
|
Lists, Stacks, Queues, and Deques |
|
|
299 | (12) |
|
Priority Queues, Heaps, and Trees |
|
|
311 | (19) |
|
|
330 | (5) |
|
|
330 | (2) |
|
|
332 | (1) |
|
|
333 | (2) |
|
|
335 | (1) |
|
|
336 | (1) |
|
|
337 | (2) |
|
|
339 | (18) |
|
|
339 | (1) |
|
Binary Files versus Text Files |
|
|
340 | (1) |
|
|
340 | (1) |
|
Working with Binary Files |
|
|
341 | (3) |
|
|
344 | (10) |
|
|
354 | (1) |
|
|
354 | (1) |
|
|
354 | (1) |
|
|
355 | (1) |
|
|
355 | (1) |
|
|
356 | (1) |
|
|
356 | (1) |
|
|
357 | (18) |
|
|
357 | (1) |
|
|
358 | (12) |
|
|
370 | (2) |
|
|
372 | (1) |
|
|
372 | (1) |
|
|
372 | (1) |
|
|
373 | (1) |
|
|
374 | (1) |
|
|
374 | (1) |
|
|
375 | (28) |
|
|
375 | (1) |
|
|
376 | (3) |
|
CASE STUDY: Designing a Relational Database |
|
|
379 | (2) |
|
|
381 | (2) |
|
Structured Query Language (SQL) |
|
|
383 | (4) |
|
|
387 | (1) |
|
Creating a Database Application |
|
|
388 | (4) |
|
Creating a Database through Object Pascal Source Code |
|
|
392 | (5) |
|
|
397 | (3) |
|
|
397 | (1) |
|
|
398 | (1) |
|
|
399 | (1) |
|
|
400 | (1) |
|
|
401 | (1) |
|
|
402 | (1) |
|
|
403 | (18) |
|
|
403 | (1) |
|
|
404 | (1) |
|
|
404 | (10) |
|
CASE STUDY: The Towers of Hanoi |
|
|
414 | (3) |
|
|
417 | (1) |
|
|
417 | (1) |
|
|
418 | (1) |
|
|
418 | (1) |
|
|
418 | (1) |
|
|
419 | (2) |
|
Object-Oriented Programming |
|
|
421 | (32) |
|
|
421 | (1) |
|
The Object-Oriented Paradigm |
|
|
422 | (1) |
|
|
422 | (2) |
|
Delphi's OOP Implementation |
|
|
424 | (1) |
|
|
424 | (5) |
|
Inheritance and Polymorphism |
|
|
429 | (3) |
|
Constructors and Destructors |
|
|
432 | (4) |
|
|
436 | (9) |
|
|
445 | (1) |
|
|
446 | (4) |
|
|
446 | (1) |
|
|
447 | (1) |
|
|
447 | (3) |
|
|
450 | (1) |
|
|
450 | (1) |
|
|
451 | (2) |
|
Additional Delphi Components |
|
|
453 | (54) |
|
|
453 | (1) |
|
|
454 | (30) |
|
|
454 | (3) |
|
|
457 | (2) |
|
|
459 | (3) |
|
|
462 | (2) |
|
|
464 | (2) |
|
|
466 | (1) |
|
|
467 | (1) |
|
|
467 | (3) |
|
|
470 | (2) |
|
|
472 | (4) |
|
|
476 | (4) |
|
|
480 | (4) |
|
|
484 | (8) |
|
|
484 | (1) |
|
|
485 | (1) |
|
|
485 | (3) |
|
|
488 | (2) |
|
|
490 | (2) |
|
|
492 | (5) |
|
|
492 | (3) |
|
|
495 | (2) |
|
|
497 | (3) |
|
DriveComboBox, DirectoryListBox, FilterComboBox, FileListBox |
|
|
497 | (3) |
|
|
500 | (2) |
|
|
502 | (1) |
|
|
502 | (3) |
|
|
502 | (2) |
|
|
504 | (1) |
|
|
505 | (1) |
|
|
505 | (1) |
|
|
506 | (1) |
|
Advanced Delphi Programming |
|
|
507 | (137) |
|
|
507 | (1) |
|
ActiveX Controls and Forms |
|
|
508 | (4) |
|
Multiple Forms Programming and Multiple Document Interface Forms |
|
|
512 | (8) |
|
|
513 | (1) |
|
|
514 | (1) |
|
|
515 | (5) |
|
|
520 | (3) |
|
|
523 | (4) |
|
Object Linking and Embedding |
|
|
527 | (3) |
|
Dynamic Data Exchange (DDE) |
|
|
530 | (3) |
|
|
533 | (4) |
|
Compiler Directives and Conditional Compilation |
|
|
537 | (4) |
|
CASE STUDY: A Computerized Survey |
|
|
541 | (5) |
|
|
546 | (4) |
|
|
546 | (1) |
|
|
547 | (2) |
|
|
549 | (1) |
|
|
550 | (1) |
|
|
551 | (1) |
|
|
552 | (1) |
Appendices |
|
|
A. Computer Arithmetic and Number Systems |
|
|
553 | (20) |
|
|
553 | (1) |
|
Binary to Decimal Conversions |
|
|
554 | (1) |
|
Decimal to Binary Conversions |
|
|
554 | (2) |
|
|
556 | (3) |
|
Octal and Hexadecimal Numbers |
|
|
559 | (1) |
|
Binary---Octal---Hexadecimal Conversions |
|
|
560 | (1) |
|
Octal and Hexadecimal Arithmetic |
|
|
561 | (1) |
|
|
562 | (4) |
|
Sign and Modulus Representation |
|
|
566 | (1) |
|
Real Number Representations |
|
|
566 | (1) |
|
|
567 | (1) |
|
|
567 | (1) |
|
|
568 | (2) |
|
|
570 | (1) |
|
|
570 | (3) |
|
B. ASCII (ANSI) Character Values |
|
|
573 | (2) |
|
C. Object Pascal Programming Standards |
|
|
575 | (4) |
|
Documentation in the Source Code |
|
|
575 | (1) |
|
Software Engineering Standards |
|
|
576 | (1) |
|
|
576 | (1) |
|
|
577 | (1) |
|
|
577 | (1) |
|
|
578 | (1) |
|
D. Customizing the Delphi Integrated Development Environment |
|
|
579 | (8) |
|
|
579 | (1) |
|
|
580 | (1) |
|
|
581 | (1) |
|
|
582 | (1) |
|
|
582 | (2) |
|
Changing the Default Project Type |
|
|
584 | (1) |
|
|
584 | (3) |
|
E. Distributing Delphi Programs |
|
|
587 | (2) |
|
Building Executable Files |
|
|
587 | (1) |
|
Distributing the Application |
|
|
587 | (2) |
|
F. Object Pascal Reserved Words |
|
|
589 | (2) |
|
G. Migrating from Visual Basic to Delphi |
|
|
591 | (53) |
|
|
591 | (2) |
|
Integrated Development Environment |
|
|
593 | (1) |
|
|
594 | (1) |
|
|
594 | (3) |
|
|
597 | (6) |
|
|
603 | (1) |
|
|
603 | (2) |
|
|
605 | (5) |
|
|
610 | (4) |
|
|
614 | (3) |
|
|
617 | (3) |
|
|
620 | (1) |
|
|
621 | (4) |
|
|
625 | (10) |
|
Object-Oriented Programming |
|
|
635 | (4) |
|
|
639 | (2) |
|
|
641 | (1) |
|
Building Executable Files |
|
|
641 | (1) |
|
Distributing the Application |
|
|
642 | (1) |
|
|
642 | (1) |
|
|
643 | (1) |
Index |
|
644 | |