Upload
others
View
1
Download
0
Embed Size (px)
Citation preview
VISUAL BASIC~6 HOW TO ------------PROGRAM
H. M. Deitel Deitel & Associates, Inc.
P. J. Deitel Deitel & Associates, Inc.
T. R. Nieto Deitel & Associates, Inc.
PRENTICE HALL, Upper Saddle River, New Jersey 07458
~ .- . - '" ~ -- ...,.., " ~ ".... ~,..
- " '
J
"
Contents
Preface xxx
Chapter 1 Computing Concepts 1 1.1 Introduction 2 1.2 What Is a Computer? 3 1.3 Computer Organization 4 1.4 Evolution of Operating Systems 4 1.5 Personal Computing, Distributed Computing, and
Client/Server Computing 5 1.6 Machine Languages, Assembly Languages, and
High-level Languages 6 1.7 History of Visual Basic 7 1.8 Other High-level Languages 7 1.9 Structured Programming 8
1.10 What Is Visual Basic? 9 1.11 General Notes About Visual Basic and This Book 10 1.12 A Tour of the Book 11
Chapter 2 Integrated Development Environment 25 2.1 Introduction 26 2.2 Integrated Development Environment Overview 26 2.3 Project Window 28 2.4 Toolbox 29 2.5 Form Layout Window 31 2.6 Properties Window 31 2.7 Menu Bar and Tool Bar 32 2.8 A Simple Program: Displaying a Line of Text 33
Chapter 3 Introduction to Visual Basic Programming 50 3.1 Introduction 51 3.2 Visual Programming and Event-Driven Programming 51
I I
l
VISUAL BASIC 6 How TO PROGRAM CONTENTS VII
3.3 A Simple Program: Printing a Line of Text on the Form 52 3.4 Another Simple Program: Adding Integers 60 3.5 Memory Concepts 64 3.6 Arithmetic 64 3.7 Operator Precedence 66 3.8 Decision Making: Comparison Operators 69
Chapter 4 Control Structures: Part I 88 4.1 Introduction 89 4.2 Algorithms 89 4.3 Pseudocode 90 4.4 Introduction to Control Structures 91 4.5 I f/Then Selection Structure 93 4.6 If/Then/Else Selection Structure 94 4.7 While Repetition Structure 98 4.8 Do While Repetition Structure 99 4.9 Do until Repetition Structure 100
4.10 Formulating Algorithms: Case Study 1 (Counter-Controlled Repetition) 101
4.11 Formulating Algorithms with Top-down, Stepwise Refinement: Case Study 2 (Sentinel-Controlled Repetition) 103
4.12 Formulating Algorithms with Top-down, Stepwise Refinement: Case Study 3 (Nested Control Structures) 110
Chapter 5 Control Structures: Part II 129 5.1 Introduction 130 5.2 Essentials of Counter-Controlled Repetition 130 5.3 For Repetition Structure 132 5.4 Examples Using the For/Next Repetition Structure 134 5.5 Select Case Multiple-Selection Structure 140 5.6 Do/LOOp While Repetition Structure 147 5.7 Do/LOOp Until Repetition Structure 149 5.8 Exi t Do and Exi t For Statements 151 5.9 Data Type Boolean 153
5.10 Constant Variables 154 5.11 Logical Operators 156 5.12 Structured Programming Summary 159 5.13 Visual Basic Data Types 164
Chapter 6 ~ub Procedures and Function Procedures 177 6.1 Introduction 178 6.2 Form Modules 178 6.3 Sub Procedures 180 6.4 Function Procedures 186 6.5 Call-by -V al ue vs. Call-by -Reference 190
VID CONTENTS VISUAL BASIC 6 How TO PROGRAM
6.6 Exit Sub and Exit Function 194 6.7 Storage Classes 197 6.8 Scope Rules 198 6.9 Random Number Generation 201
6.10 Example: A Game of Chance 208 6.11 Recursion and the Factorial Function 214 6.12 Another Recursion Example: The Fibonacci Series 217 6.13 Recursion vs. Iteration 220 6.14 Optional Arguments 221 6.15 Named Arguments 223 6.16 Visual Basic Math Functions 225 6.17 Code Modules 226
Chapter 7 Arrays 247 7.1 Introduction 248 7.2 Arrays 248 7.3 Declaring Arrays 249 7.4 Examples Using Arrays 251 7.5 Passing Arrays To Procedures 258 7.6 Sorting Arrays 263 7.7 Searching Arrays: Linear Search and Binary Search 266 7.8 Multidimensional Arrays 271 7.9 Control Arrays 274
7.10 Dynamic Arrays 278 7.11 Variable Arguments: ParamArray 285 7.12 Function Array 286
Chapter 8 Strings, Dates and Times 302 8.1 Introduction 303 8.2 Fundamentals of Characters and Strings 304 8.3 String Data Type 305 8.4 String Concatenation with & and + 305 8.5 Comparing Character Strings 306 8.6 Operator Like 309 8.7 ManipuTatlngiliErrilliVidual Characters in a String: Mid$ 311 8.8 Left$, Right$, and InStr 312 8.9 Searching for Substrings in Strings using InStr and InStrRev 315
8.10 LTrim$, RTrim$ and Trim$ 317 8.11 String$ and Spaces$ 317 8.12 Replacing Substrings in a String with Function Replace 319 8.13 Reversing Strings with Function StrReverse 319 8.14 Converting Strings to Uppercase and Lowercase 320 8.15 Conversion Functions 321
8.15.1 Asc andChr$ 321 8.15.2 IsNumeric, Val and Str$ 322
I I
~
VISUAL BASIC 6 How TO PROGRAM CONTENTS IX
8.15.3 Hex$ and Oct$ 323 8.15.4 The Type Conversion Functions 324
8.16 String Formatting 327 8.16.1 Function Format $ and Named Numeric Formats 327 8.16.2 Function Format$ and User-Defined Numeric Formats 329 8.16.3 Function Forma tNwnher 333 8.16.4 Function FormatCurrency 335 8.16.5 Function FormatPercent 338
8.17 Date and Time Processing 340 8.18 Date and Time Formatting 348 8.19 String Arrays 353
8.19.1 A Card Shuffling and Dealing Simulation 356
Chapter 9 Graphics 371 9.1 Introduction 372 9.2 Coordinate Systems 372 9.3 Drawing Methods 374 9.4 Drawing Properties 382 9.5 Line Control and Shape Control 387 9.6 Colors 390 9.7 Images 398 9.8 Printer Object 400
~hapter 10 Basic Graphical User Interface Concepts 408 10.1 Introduction 409
.J" 10.2 Controls 409 10.3 TextBox Control 412 10.4 MaskEdi t Control 414 10.5 ComboBox Control 419 10.6 ListBox Control 423 10.7 Scrollbars 427 10.8 Slider Control 431 10.9 Menus 433
10.10 Pop-up Menus 437 10.11 Function MsgBox 438
Chapter 11 Advanced Graphical User Interface Concepts 458 11.1 Introduction 459 11.2 Multiple Document Interface (MD!) 459 11.3 Multiple Forms 469 11.4 Template Forms 475 11.5 Rich TextBox Control 480 11.6 UpDown Control 485 11.7 ImageList Control 489 11.8 ImageCombo Control 492
x CONTENTS VISUAL BASIC 6 How TO PROGRAM
11.9 FIatScrollBar Control (Professional and Enterprise Editions) 495 11.10 Native Code Compilation (Professional and Enterprise Editions) 498
Chapter 12 Mouse and Keyboard 508 12.1 Introduction 509 12.2 Changing the Shape of the Mouse Pointer 509 12.3 Mouse Events 512 12.4 Mouse Buttons 515 12.5 Shift, Ctrl and Al t Keys 517 12.6 Drag-and-Drop 520 12.7 Key Events 526 12.8 KeyPreview Property 529
Chapter 13 Error Handling and Debugging 537 13.1 Introduction 538 13.2 When Error Handling Should Be Used 539 13.3 A Simple Error-Handling Example: Divide by Zero 539 13.4 Nested On Error Statements 542 13.5 Err Object 544 13.6 Resume Statement 547 13.7 Error Handlers and the Call Stack 550 13.8 Rethrowing Errors 555 13.9 Break Mode, the Immediate Window, and the Debug Object 556
13.10 First Steps in Bug Prevention 559 13.11 Debugging Strategies 560 13.12 Debugger 562
13.12.1 Debug Menu and Debug Tool Bar 562 13.12.2 Locals Window 567 13.12.3 Watch Window 568 13.12.4 Call Stack Window 570
13.13 Debugger and Error Handlers 571
Chapter 14 Sequential File Processing 578 14.1 Introduction 579 14.2 DirList-Box,-Fi-leListBox, and DriveListBox
Controls 579 14.3 Data Hierarchy 583 14.4 File System Objects 584 14.5 Creating a Sequential Access File 599 14.6 Reading Data from a Sequential Access File 603 14.7 Updating Sequential Access Files 608
Chapter 15 Records and Random-Access Files 615 15.1 Introduction 616 15.2 Random-Access Files 616 15.3 Records as User-Defined Types 617
VISUAL BASIC 6 How TO PROGRAM CONTENTS XI
15.3.1 User-Defined Type Definitions 617 15.3.2 Manipulating Members of User-Defined Types 618
15.4 Creating a Random-Access File 619 15.5 Writing Data Randomly to a Random-Access File 624 15.6 Reading Data Sequentially from a Random-Access File 627 15.7 Reading Randomly from a Random-Access File 630 15.8 Example: A Transaction Processing Program 633
Chapter 16 Object-Oriented Programming 645 16.1 Introduction 646 16.2 Data Abstraction and Information Hiding 648 16.3 Implementing a Time Abstract Data Type with a Class 649 16.4 Class Members 653 16.5 Composition: Objects as Instance Variables of Other Classes 660 16.6 Introduction to Object-Oriented Programming 666 16.7 Software Engineering with Components 669 16.8 Type Fields and Select Case Statements 669 16.9 Polymorphism 670
16.10 Visual Basic Interfaces 671 16.11 Polymorphism Examples 671 16.12 Case Study: IShape, CPoint, CCircle 673 16.13 Case Study: A Payroll System Using Polymorphism 677 16.14 Case Study: Polymorphic Processing of Shapes 684 16.15 Simulating Implementation Inheritance with Interface Inheritance and
Delegation 688 16.16 Object Browser 694 16.17 Events and Classes 695
Chapter 17 ActiveX 708 17.1 Introduction 709 17.2 Components, COM and DCOM 709 17.3 ActiveX Control Types 713 17.4 ActiveX Control Lifetime and Events 715 17.5 UserControl Object 716 17.6 Creating an ActiveX Control That Contains Constituent Controls 717 17.7 ActiveX Control Example: Clock Control 724 17.8 ActiveX Control Interface Wizard 731 17.9 Property Pages and the Property Page Wizard 741
17.10 ActiveX DLLs 746 17.11 ActiveX EXEs 750 17.12 Friend Access 755
Chapter 18 Database Management 766 18.1 Introduction 767 18.2 Database Systems 768
-
XII CONTENTS VISUAL BASIC 6 How TO PROGRAM
18.2.1 Advantages of Database Systems 768 18.2.2 Data Independence 768 18.2.3 Database Languages 769 18.2.4 Distributed Database 769
18.3 Relational Database Model 769 18.3.1 Relational Database 769
18.4 Introducing the Microsoft ADO Data Control 6.0 and Microsoft DataGrid Control 6.0 771
18.5 Relational Database Overview: The Biblio .mdb Database 776 18.6 Structured Query Language 779
18.6.1 Basic SELECT Query 780 18.6.2 WHERE Clause 780 18.6.3 ORDER BY Clause 781 18.6.4 Using INNER JOIN to Merge Data from Multiple Tables 782 18.6.5 All Titles Query from Biblio .mdb 783
18.7 Revisiting the ADO Data Control and DataGrid Control 784 18.8 Hierarchical FlexGrid Control 788 18.9 DataList and DataCombo Controls 789
18.9.1 Example: Using the DataCombo and DataList Controls 790 18.9.2 Using the BoundColumn Property 794
18.10 Using the Data Environment Designer 796 18.11 Other Programmatic Capabilities of Recordsets 801 18.12 Transaction Processing 801
Chapter 19 Networking, the Internet and the World Wide Web 808 19.1 Introduction 809 19.2 Visual Basic Internet Controls 810 19.3 WebBrowser Control 811 19.4 Internet Transfer Control 816
19.4.1 Hypertext Transfer Protocol (HTTP) Connections 816 19.4.2 File Transfer Protocol (FTP) Connections 818
19.5 Other Properties, Methods and Events of the Internet Transfer- Control 822
19.6 Winsock Control 823 19.6.1 Establishing a Simple Server (Using TCP Protocol) 823 19.6.2 Establishing a Simple Client (Using TCP Protocol) 825
19.7 Example: Client/Server Interaction with the Winsock Control 826 19.7.1 A Simple TCP-Based Server 826 19.7.2 A Simple TCP-Based Client 829 19.7.3 Outputs of the Client/Server Interactions 832
19.8 Winsock Control and UDP-Based Client/Server Computing 834 19.8.1 A Simple UDP-Based Server 834 19.8.2 A Simple UDP-Based Client 836 19.8.3 Outputs of the Client/Server Interactions 838
VISUAL BASIC 6 How TO PROGRAM CONTENTS XIII
1 19.9 Other Properties, Methods and Events of the Winsock Control 839
19.10 Visual Basic Script (VBScript@): An Overview 840
Chapter 20 Multimedia: Images, Animation, Audio 860 20.1 Introduction 861 20.2 Microsoft Agent Control 862 20.3 Multimedia MCI Control 870
20.3.1 A Multimedia MCI Control CD Player 872 20.3.2 A Multimedia MCI Control AVI File Player 874
20.4 Animation Control 876 20.5 RealAudio ActiveX Control Library 880 20.6 Marquee Control Library 882 20.7 Microsoft Acti veMovie Control 885
Chapter 21 Data Structures, Collections and Dictionaries 896 21.1 Introduction 897 21.2 Type variant 897 21.3 Self-Referential Classes 899 21.4 Dynamic Memory Allocation 900 21.5 Linked Lists 900 21.6 Stacks 912 21.7 Queues 915 21.8 Trees 917 21.9 Collection Object 924
21.10 Dictionary Object 928
Appendix A Operator Precedence Chart 944
AppendixB ANSI Character Set 946
Appendix C Visual Basic Internet and World Wide Web Resources 947 C.1 Visual Basic Web Resources 947 C.2 Microsoft Visual Basic Web Sites 947 C.3 Visual Basic Resources 948 C.4 FAQs 949 C.5 Tutorials for Learning VB 950 C.6 VB Newsgroups and Mailing lists 950 C.7 VB Books and Magazines 951 C.8 VB Products 952
AppendixD Number Systems 953 D.1 Introduction 954 D.2 Abbreviating Binary Numbers as Octal Numbers and
Hexadecimal Numbers 957
sbn
XIV CONTENTS VISUAL BASIC 6 How TO PROGRAM
D.3 Converting Octal Numbers and Hexadecimal Numbers to Binary Numbers
DA Converting from Binary, Octal, or Hexadecimal to Decimal D.5 Converting from Decimal to Binary, Octal, or Hexadecimal D.6 Negative Binary Numbers: Two's Complement Notation
Bibliography
Lndex
958 958 959 961
967
971
il
Index
... & mask character, 417 < mask character, 417 Accept method, 824, 828
& string concatenation operator, >= is greater than or equal to, 69 accept or deny a connection, 810 305,312 <= is less than or equal to, 69 Access, 768, 774
&H,323 <= relational operator, 150 access database, 309 &0,323 <!--,844 accessibility heuristic, 296 @ character, 13 9 ! character, 139 access keys, 425 + addition operator, 65, 67 ! exclamation point, 106,310 access method, 656 + sign, 333 :=,223 Accessories menu, 589 + string concatenation operator, %,329 accessor method, 654
305 • mask character, 417 access specifier, 695 - minus operator, 65, 67 I mask character, 417 AccessType property of - negation operator, 65-66 : mask character, 417 Internet Transfer - sign, 333 1,622 control, 822
-->,844 access types, 617
* multiplication operator, 65 accounts payable file, 584
* or I multiplication operator and accounts receivable, 602 floating-point division, 66
A accounts receivable file, 584 ? mask character, 417 Acknowledge, 867 #,332 A mask character, 417 acknowledgment of receipt, 823 # mask character, 417 a mask character, 417 • acs extension, 866 I division (float) operator, 65 A:,31 action, 669, 672 I mask character, 417 a: drive, 582-583 action/decision model of comput-\ division (Integer) operator, Abort button, 439 ing,95
'65,67 Abs function, 225 action/decision model of pro-\ mask character, 417 absence of color, 390 grarnming, 93 A exponentiation operator, 65-66 About, 477 action-oriented, 646 () parentheses, 66 absolute coordinates, 382 actions, 2, 11,89,94-95, 134, ,I, = is equal to, 69 absolute path, 591 160,164,649
< > is not equal to, 69 absolute value, 225 action symbol, 91
> is greater than, 69 abstract data type (ADT), 648 Acti vate, 717
> button, 733 abstract data type CTimel, 651 Activate method, 869
> mask character, 417 abstract method, 673 active child form, 468-468 1'1
< is less than, 69 abstraction, 590 active child window, 462
'I
J
972
active control, 542
Acti veMovie control, 885-887
ActiveMoviel_Error,887
ActiveX, 14,648,709-712
ActiveX Component, 754
ActiveX components, 14,709, 712, 746
ActiveX Control, 730
ActiveX control, 561, 669, 709, 713-714
ActiveX control FlatScrollBar, 495
ActiveX control ImageList, 489
ActiveX control interface wizard, 731-732,738
ActiveX Control Interface Wizard - Create Custom Interface Members dialog, 734-735
ActiveX Control Interface Wizard - Finished! dialog, 736
ActiveX Control Interface Wizard - Introduction dialog, 732-733
ActiveX Control Interface Wizard - Select Interface Members dialog, 732, 734
ActiveX Control Interface Wizard - Set Attributes dialog,735
ActiveX Control Interface Wizard - Set Mapping
ActiveX document, 709, 712 ActiveX EXE, 750-751, 753-756
ActiveX EXE, 753
ActiveX EXE project type, 750
ActiveX server, 709
Ada programming language, 9, 13
Add, 924, 926-927, . .932
Add Class Module, 649 Add Class Module dialog, 649
ActiveX DLL, 746-748
ActiveX Dll project, 747
ActiveX dynamic link library (DLL),746
Add Command, 798
Add Form, 469 Add Form dialog, 462, 475-476
Add Form from the Project menu, 461, 469
Add-In Manager dialog, 732-733
Add-In Manager ... from Add-Ins menu, 732
add-ins, 33
Add-Ins menu, 33 AddItem, 138, 147,257
AddItem comboBox method, 420
AddItem ListBox method, 424
adding Integers on a Web page using VBScript, 844
addition, 649 addition operator, +, 63, 65, 67
Add keylvalue pair, 930
Add MDI Form, 460
dialog,734-735 Add MD! Form dialog, 461
ActiveX Control Interface Add Module dialog, 226 Wizard Summary dialog,-- ___ _ Add Module from the 736 Proj ect menu, 226
ActiveX Control project type, Add 1 Second, 659-660 717-718 Add Procedure, 181
ActiveX controls, 409, 459, 480, Add Procedure dialog, 180-485,492 181,186,197
ActiveX controls for database processing, 15
ActiveX controls for networking, -15
ActiveX control's properties, 741
ActiveX Data Object (ADO) technology, 769, 773
Add Procedure menu item, 180
Add PropertyPa,ge.dialog, 741, 742
Add Property Pages from Project menu, 741
AddRef,71O
Add to Collection, 924
INDEX
Add Watch ... , 563, 568-569 addition, 670
"administrative" section of the computer, 4
address space, 747, 750
add to a project, 227
Add User Control dialog, 732 Add User Control from
Project menu, 732
ADO (ActiveX Data Object), 771, 773
Adobe Photoshop, 188
ADO Data Control control, 412,772-774,776,784, 786, 789, 794
ADO Data Control's Prop-erty Pages dialog, 774
ADODC Properties, 774, 789
ado prefix, 412
ADT,649
Advanced Optimizations, 498
Advanced String manipulation Exercises, 367
aggregate, 617
aggregate controls, 714
aggregate types, 618
aggregation, 660-661
airline reservation system, 294, 616
AlarmClock class, 661
alarmClockHourValue,656
algorithm, 89, 91-92, 924
aligning text, 375
Align property, 462
Align property constants, 463
AligIU1lent property, 38, 437, 488
Alert animation, 867-868
AlertReturn animation, 867
All local Variables as Stat-ics checkbox,197
AllowAddNew property, 787
--XlloWChangeDisplayMode property, 888
AllowDelete property of DataGrid, 787
AllowHideControls property,888
INDEX 973
AllowHideDisplayproperty, Appearance property, 32, 496, ASCII values, 309, 529 888 498 As clause, 63
AllowPrompt MaskedEdit Appearance property con- ASC specifies ascending, 781 control properties, 416 stants,496 As keyword, 62,182, 187
AllowUpdate property, 775, append character to a string, 312 ASC (ascending order), 782 792, 796 Append mode, 561 Asc function, 321
AllowUpdate property of Apple Computer, 5 As Obj ect, 694 DataGrid,776 Apple QuickTime video, 885 aspect ratio, 376-378
Alpha from Digital, 861 application designer, 669 aspect ratios greater than 1, 376 Alphabetic tab, 32 application development lan- aspect ratios less than 1, 376 alphabetical sequence, 309 guage,7 assign a value to an object, 656 alphabetizing names, 308 applications, 669 assignment, 694 Alt,518-519 App object, 752 assignment expression, 64 Altkey,425, 517-520, 526,528 arc, 12,376-378 assignment operator, =, 63 Alt +A, 426 arc angle, 377 assembler, 6 Alt +R, 426 Archive property, 580 assembly language, 6 ALU,4 arctangent, 225 Assert method, 559 Ambient, 715-716 Area, 673, 688 asterisk, *, 64, 780, 846 AmbientChanged event, 727 argument, 183,653 asterisk, *, pattern matching char-Ambient.ForeColor,728 argument passed call-by-value, acter,309 Ambient object, 726 190 asynchronous transfers, 816, 821 Ambient object properties, 727 arguments to a procedure, 182 AtEndOfLine property, 599 Ambient property changes for a arithmetic mean, 67 AtEndOfStreamproperty,599 container, 727 arithmetic and logic unit (ALU), 4 Atn function, 225 American National Standards arithmetic operator, 64 at sign character (@), 139 Institute (ANSI) character
arithmetic overflow, 538 attribute, 31, 590-591, 646, 666, set, 304 Arrange method, 468 668 American Standards Code for Arrange method constants and Attributes property, 595,801 Information Interchange
values, 468 audio, 16,834,874-875,879-880 (ASCII), 304
amount invested, 135 Array, 286-287 audio board, 861 array, 248, 648, 672-673, 677, audio CD, 872 ampersand (&:), 305-306,425
684,688,898,900-901 audio CD player, 873 amvFrames, 888 array declaration, 253 audio clip, 810 amvSeconds, 888
analog clock, 893 array index, 249 audio player, 870 array name, 248 audio walkthroughs, 16 Analytical Engine, 9 array parentheses, 259 Authors table, 773 I Anding,520
And (logical AND), 156 arrow, 91, 95, 98 Authors table from Bib- ! arrow cursor, 510 lio.mdb,777 i .ANI,509 arrow hourglass cursor, 510 AutoBuddy property, 488 animated characters, 16, 864, 869
! Arrows property, 495 auto list members, 184-185 ! animated cursor (.ANI file), 509
I animation, 16, 862, 866, 876 Arrows property constants, 495 Auto List Members, 185 artist, 894 automated teller machine, 616, Animation control, 876-877, ascending order, 263, 781, 784, 894
I 879
ANSI (American National Stan- 923 automatic, 197 ASC, 782, 796 automatically download files I dards Institute), 304
11 ANSI character, 417 ASCII, 304 from the Internet, 816 I, 1I
ANSI character set, 304 ASCII character, 619 automatic drag-and-drop, 520, ~ I ANSI C programming language ASCII character set, 309 524,526
I keywords, 506 ASCII code, 321 automatic storage class, 201 I
~ , ~ ~ ~ I
9 I .. ,-"U le
974
automatic variables, 912
automation, 712-713, 750, 753-754
Automation Manager, 713
AutoP~ay property, 879
auto quick info, 185,223,426, 758
Auto Quick Into, 185
AutoRewind property, 888
AutoStart property, 888
Auto Syntax Check option, 560
AutoTab MaskedEdi t control property, 416
automatic variable, 197-198
AutoRedraw, 385, 387, 397
AutoRedraw, 386
AutoRedrawproperty, 382, 386
Available Properties List-Box, 744
Avai~ab~eSpace property, 597
average, 67, 103
A VI (audio-video interleave) file, 874,885
AVI File, 876
AVI file animation, 876
AVI files, 874--875, 879
AVI player, 875
AVIVideo, 871, 875
B <B>, 841
</B>,841
Babbage, C., 9
Back, 870-872
BackCo~or, 468, 514, 726
BackColor property, 36, 390-391,395,461,727
background audio, 893
background color, 36, 724
backslash (\), 65
backslash (\) in a format string, 332
Backspace key, 34, 527
BackStyle property, 390, 879
BalloonHide event, 868
Ba~loonShow event, 868
banking system, 616
bar-code reader, 14
bar graph, 407
.bas,227
.bas file, 472
base case, 215, 217, 220
base 8, 323
base 16, 323
base string, 313, 315-316
BASIC (Beginner's All-purpose Symbolic Instruction Code), 7
batch processing, 4
Beep statement, 112
before or the after argument, 924
beginning-of-file indicator, 801
BeginTrans, 801
behavior, 590-591, 646, 648, 666, 668,672
Behavior property, 32
Bell Laboratories, 8
BF,376
Biblio.mdb database, 773-774,776,778-780,783-784, 786-787, 794, 797
Binary, 308
Binary Compatibility option, 754
binary data, 822
binary digit, 583
binary file, 709, 818
binary operator, 64, 157
binary search, 266, 269
binary search program, 269
biIlary search tree, 918, 922-924
binary tree, 898, 917-918, 924
binary tree delete, 940
binary tree search, 941
binary tree sort, 923
bind the server to a port for receiving packets, 835
BirthDate, 665
BirthDate Get procedure, 665
bit, 583
bit field, 518
bit manipulation, 518
bitmap, 399, 772
bitmap file, 459
INDEX
bitmap image, 398, 459, 730 bitmap type, 398
black (the default), 379, 391,393 514,526 '
blank, 94
blank line before and after each control structure, 131
blinking cursor, 54
block, 97
blue, 391, 393, 514
blue intensity, 390
• bmp image, 507
• bmp image file extension, 398
<BODY>, 841-842, 845, 849
</BODY>, 841-842, 846
body of a control structure, 97
body of the loop, 927
BOF (beginning-of-file) prop-erty,801
Bohm, C., 91,162
bombing, 105
Bookmark property, 789
Bookmark property of a Recordset, 801
Bookmark value, 801
Boolean, 327
Boolean data type, 153, 165
boolean value, 153
Boolean value False, 324
Boolean value True, 324
Boolean variable, 154
border, 401
BorderColor property, 387, 390
borderless PictureBox, 492
BorderStyle constants, 387
BorderStyle property, 387, 390,462,795
BorderWidth property, 387, 390
Borland International, 8
BoundColumn field, 789
Boundco~umn property, 789, 794--796
Bound Controls, 798
bound controls, 798
bounds of an array, 256
-
r "
i
j '"
INDEX
BoundText property, 789
box, 375
building block appearance, 161
building blocks, 89
branching logic, 670
Break button, 562
Break in Class Module, 571
break mode, 557-559, 562, 564, 571
Break on All Errors, 571
Break on Unhandled Errors, 571
breakpoint, 563, 566-567
Break toolbar button, 558
Break When Value Changes, 568
Break When Value Is True, 568
browse, 694
browser, 810, 845
bubble sort; 263, 299, 630
bucket sort, 299
buddy control, 485, 488
buffer audio, 882
buffer future audio, 882
bug, 655
Building Your Own Computer, 449
built-in data types, 649
built-in types, 649
business-critical systems, 13
business systems, 17
Busy property of Web Browser control, 815
button, 13,27-28,52,914
Button, 515, 518-518
Button bit field, 520
ButtonClick event, 872
ButtonCompleted event, 872
Button constants, 517
ButtonEnabled property, 871
ButtonGotFocus event, 872
Button intrinsic HTML control, 846-847
ButtonLostFocus event, 872
buttons appear gray, 28
button's event procedure, 54
Buttons tab, 511
ButtonVisible property, 871
975
Byte, 165,898 Cancel method of Internet
byte, 583 Transfer control, 822
Byte array, 818 Caps Lock key, 527
ByRef keyword, 191, 194 Caption, 75
BytesRecei ved property of Caption property, 34, 36-37,
WinSock control, 839 52,71,319,775,787,792,
Byron, Lord, 9 795-796
ByVal keyword, 190-191, 193, Caption TextBox, 436
260,683 Caption text font, 52
caret, A, 64
card shuffling and dealing pro-gram, 358, 644
C card shuffling and dealing simula-
tion,354,356
c, 676, 688 car radio, 30
C, 6--8, 13,646-647 cascade, 468
c:,31 cascade child windows, 468
C:\Program Case, 146
Files\Microsoft Case Else, 147,203
Visual Studio\Com- case-insensitive comparison, 309
mon\Graphics\Vid- case-sensitive, 62, 529, 781 eos,874 case-sensitive comparison, 309
C standard library, 647 casino, 201, 208 C++, 6-8, 13,647,666-667,670 Categorized tab, 32 CAccount superclass, 667 CBankAccount,653 cache, 815 CBool function, 324 calculation actions, 11 cbo ComboBox prefix, 423 calendar/tickler file, 894 cbo prefix, 410 Call, 183 CBoss,677 call, 810 CBoss2, 689-691, 693-694 call-by-reference, 190, 193,259 CBS Sportsline Live, 882 call-by-value, 190, 193 CByte function, 324 call-by-value bad for perfor- CCar,670
mance,190 CCarLoan subclass, 667 call-by-value versus call-by-ref- CCheckingAccount sub-
erence, 192 class, 667 call stack, 551
CCircle class definition, 675 callee,179,259,550,555
CCircle example, 675 caller, 179,259,550,570,912
CCircle Private, 676 calling attention to an image, 894
CCircle subclass, 666, 670-calling procedure, 550 671,673,676,684,688 Call ListItems,932 CCommissionWorker,677, Call ListKeys,932 683 Call Randomize,208 CCommissionWorker Calls RaiseAnEvent, 697 ImplementsIEm-call stack, 550, 555 ployee,683 Call Stack window, 570-571 CCommissionWorker2,693-Cancel, 473 694
Cancel button, 27, 74, 439 CCommunityMember,668
976
cc2AlignmentLeft constant,488
cc2AlignmentRight con-stant,488
cc2Both constant, 495
cc2LeftUp constant, 495
cc20rientationHorizont al constant, 488, 496
cc20rientationVertical constant, 488, 496
cc2RightDOwn constant, 495
cCube,671
CCur function, 324 CCylinder, 671, 684, 688
cd (change directories), 821
CDate function, 325
CDatel, 661, 664-665
CDatel object, 665
CDAudio,871-872
CDbl function, 325
CDec function, 326
CD-quality sound, 881
CD-ROM, 861 CDRom constant CD-ROM drive, 870, 872-873
cdup (change to parent directory), 821
CEmployee class, 656, 661, 665,668
CEmployee superclass, 667
CEmployee's ToString, 665
Cent er, 38
centering the form, 35 center mouse button, 515
Center property, 879
Centimeter scale, 373 centralized control, 768 central processing unit (CPU),.4 _
cEvent,695 CFacul tyMember subclass,
667 CGraduateStudent sub
class, 666
Change, 735 Change ComboBox event pro
cedure,420 Change event, 431, 579, 723,
733 Change TextBox event proce
dure,413
Change scrollbar event procedure,429
Change Slider event procedure,431
character, 165,304,583
character is displayed on the screen, 868
character is hidden, 868
character is moved on the screen, 868
Character object, 866, 868-869
character processing, 304
characters, 12
Characters collection of the Microsoft Agent control,868
Characters scale, 373
character set, 583
character's size, 868
character string, 11
checkbox, 28
CheckBox All Local variables as Static, 181
CheckBox control, 30, 281-282, 409
CheckBox control (data aware), 771
CheckBox Create Symbolic Debug Info, 498
CheckBox Favor Pentium Pro(tm),498
CheckBox intrinsic HTML con-trol, 846-847
checked, 30
Checked CheckBox, 435
checked menu item, 435
··checkprotection,368
chess, 295, 298
chess board, 520
child, 918
child fo=, 461, 468-469
child window, 460, 464, 468
child windows tiled horizontally, 468
child windows tiled vertically, 468
chkMove,515
chk prefix, 409
INDEX
CHomeImprovementLoan subclass, 667
Choose, 147
CHourlyWorker, 677, 683
CHourlyWorker Imple-ments IEmployee, 683
Chr$ function, 321-322, 529 \Chr=string\, 869
CInt function, 326
circle, 12, 376-378, 388-389
Circle, 382-383, 401
Circle method, 374, 376, 382 Circular, 884
clarity, 10, 255, 654
CLaserBeam, 672
class, 646-649, 652, 660, 666-669,671,673,676,691, 694-695,900
class average, 103
class average problem, 106
class average program, 104, 107-109
class definition, 648, 653-654, 665
Classes ListBox, 694
class files, 649
class hierarchy, 671, 677
class implementation, 653
Class_Initialize, 664-665
Class_Initialize event procedure, 665
class library, 647, 669
class mechanism, 649
class module, 618, 647, 649, 747, 750, 755
class Name, 649
class name, 649, 694
Class1,649
class relationships, 591
Class_Terminate, 665
class type, 697
Clear, 257 Clear All Breakpoints, 563,
567 Clear ComboBox methods, 420
Clear ListBox method, 424
Clear method, 138,545
clear programs, 255
• J
INDEX
clear the off-screen image, 386
click,51
Click,511, 579,591-592
click button, 509
Click event procedure, 649
Clicked TextBox event pro-cedure,413
click link, 811
Click ListBox event proce-dure,424
click the mouse, 380
clicking, 27
clicking a line, 567
clicking event, 54
clicking the breakpoint, 567
client, 648, 650, 652-655, 810, 824-825,915
client application, 834
client closes its side of connec-tion, 832
client computer, 6, 810
client connection, 824
client connection attempt, 826
client of a class, 653
client of a stack class, 648
client/server application, 826
client/server application program-ming, 811
client/server computing, 6
client/server interaction, 834
client/server relationship, 810
clip, 375-376
CList, 901, 906-907, 910-912, 915,9l7
CListlterator, 906-907
cListlterator object, 910-911
CListNode, 899-900, 906-907,909
CLng function, 326
CLoan superclass, 667
clock,391
Clock ActiveX control, 725
Clock control, 725
Clock control, 728
Close, 836-837,870-871
close a connection, 826
Close button, 41
Close button icon, 42, 570
Close event procedure, 824, 828,831
closed shapes, 382
closed tour, 298
closely related special cases, 667
Close event procedure, 826
close New proj ect dialog, 27
Close #, 561 Close #1, 624
Close property, 600
closing a file, 603
closing projects, 33
close the connection, 810
• cls extension, 676
CMartian, 672
cmdAdd_Click, 660, 924, 930
cmdExists_Click,932
cmdOpenFile_Click,887
cmd prefix, 53
cmdRemoveAll_Click,932
cmdRemove_Click, 924, 932
CMercurian, 672
CMortgageLoan subclass, 667
COBOL (COmmon Business Ori-ented Language), 2, 8
Codd,769-770
code, 649
code bodies, 673, 676
code implementation, 670
code module, 226-228, 263
code window, 566
Code window, 54-55, 180-181, 186,227,434,676,697
Code window's Object box, 62
coin tossing, 201
collection, 16, 492
Collection, 897-898, 924-928
Collection object, 900
Col or, 398, 469, 933
color, 28, 57, 372, 376, 390, 392
color at a point, 379
color black, 379
Color Common Dialog, 396-397
color constants, 391
color depth, 398
color depth of one bit, 398
color depth of 16 bits, 398
color depth of 24 bits, 398
Color dialog, 394, 397-398
color images, 399
Color menu, 468
color red, 376, 379
colorvalue, 933 column, 271
977
Column property, 600
columns ListBox property, 424
COM, 14,648,710,712
COM-based object, 746
combination operation, 770
combining condition, 130
ComboBox, 412, 419, 462, 789, 885
comboBox control, 30, 410, 421-423,492
comboBox control (data aware), 771
comboBox properties, 419
comboBox styles, 420
Comboltems collection, 494
Comboltems'Selecte-dltem property, 495
COM Component, 709
COM foundation for ActiveX, 710
COM interface, 710
complex condition, 156
command-and-control software systems, 9
CommandButton, 52-53, 649, 885,887
CommandButton control, 30
CommandButton propeliy Style, 189
CommandBut ton with focus, 52
CommandButton without focus, 52
Command object, 773
Command object, 797-798
Command property, 870, 872, 874,876
Command Type, 788 Command Type ComboBox,
775 CommandType property, 792,
795-796
I
,~
978
comments, 56
commercial applications, 8
CommitTrans,801
commonality,668-669
Common Dialog control, 394-395
CommonDialog control, 411, 579,622,887
Common Dialog's Color property, 398
Common Programming Errors, 10
communities, 15
comparing character strings, 306
comparing strings, 307
comparison operators, 69, 93
comparison types, 309
compilation delay, 7
compile, 654
compile error, 57, 694
compiler, 7, 912, 654
Compile tab, 499
Compile to Native Code, 498
compiled program size, 498
Compile tab, 498
Component Tools Guide of the on-line Visual Basic Documentation, 821-822, 839
componentware,710
composition, 660-661, 665, 688
compound interest, 135, 138
Compound Interest Calculator, 858
compound interest program, 136
compressed file, 459
compressed image, 399
computation, 3
computation-intensive programs, 498
Compute Interest, 653
computer, 3
computer-assisted instruction (CAl),241
Computer Engineering, 809
computer networking, 6
computer program, 3
computer programmer, 3
computers in education, 241
Computer Science, 809
computer simulator, 452
compiling directly to native code,
COM specification, 710
concatenation, 305-306, 312, 923
concatenation function Join, 498
COM+,711
component, 710
Component Object Model (COM),71O
component-oriented software construction, 14
components, 13-14,647,669, 709
Components;;;, 887 .
Components dialog, 394-395, 411,414-415,480,485, 489,492,495,730-731, 774,789,812,816,823, 825,887
Components ... from Project menu, 774, 789, 812, 816, 823,825
Components in the Project menu, 394
components of a For/Next header, 133
353
concentric circles, 407
condition, 69, 92-93, 95, 97,111, 130, 156
condition is False, 94
condition is True, 94
condition-value pairs, 97
Confused animation, 867
ConfusedReturn animation, ----- -- 86'7
Connect, 825
Connect event of Win Sock control, 840
connection, 810, 834
connection accepted, 810
connection between client and the server, 823
Connection object, 797
ConnectionRequest,824 connection string, 774
ConnectionStringproperty, 786,788,792,795-796
INDEX
Connection tab, 774
connection to a server, 831
connecting to a database, 31 412 797 ' ,
connecting to a remote machine 711 '
connectionless Protocol, 823
connection-oriented Protocol, 823
connection-oriented service, 810
connection-oriented transmission 834 '
connection-oriented transmission with streams, 834
connectionless service, 810
connectionless transmission with datagrams, 834
connector symbol, 92
conserve memory, 198
Const instance variable, 653
Const keyword, 842
consistent state, 656-657, 665
consistent controls, 714
constant, 694, 842
constant variable, 138, 154-155
constants for common colors, 390
constituent control, 716, 723
container, 462, 656, 673, 715
container class, 656
container file, 723
container for controls, 410
container object, 656
containment, 661
contiguously,901
control, 53, 409
control array, 274-275, 434, 520, 824
control array event procedures, 278
Control ComboBox, 735
control icon, 647
Control Panel, 509, 511
Control Panel's Regional Settings TextBox, 342
control's Index property, 275
controls passed to procedures, 202
control-structure nesting, 93
control structures, 11, 91, 94, 220
r INDEX 979
control-structure stacking, 93, Cparallelograms,672 CSphere, 671 159 CPieceWorker, 677, 683 CSquare, 670-673
controls, 13, 28-29 cPieceWorkerImplements cStack, 914, 917 control variable, 130-131 IEmployee, 683 CStaff,668 control variable in a For/Next C++ How to Program, 794 CStaffMember subclass, 667
structure, 134 CPlutonian,672 CStr function, 326 control variable name, 133 CPoint, 673, 676, 684, 688 CStudent superclass, 666 converge on the base case, 217 CPoint class definition, 674 CTimel, 649-650, 652-656 conversion functions for strings, CPoint example, 675 CTime2, 657, 659
321 CPoint Implements, 676 CTime2 object, 661 convert a string to a Date, 343 CPU, 4 . ctl extension, 717 convert a string to a number, 323 CQueue, 915, 917 CToyota, 670 convert a string to a Variant, craps, 208 CTree, 918, 922
327
convert a string to Boolean, 324 craps program, 209 cTreeNode,921-923
convert between scales, 374 crashing, 105 CTrapezoid, 672
converting between numbers and create ActiveX controls, 714 CTriangle subclass, 666, 670-
strings, 322 create an ActiveX control, 732 671,673
convert from polar to rectangular create an ActiveX DLL, 747 Ctrl,518-519
coordinates, 381 create control array option dialog, Ctrlkey, 425, 517-518, 520, 526-
convert number to hexadecimal 275 529
(base 16) format string, 323 create custom properties, 734 Ctrl + C,435
converting numbers with decimal created, 646 Ctrl + Q, 435
points to Integers, 182 Create Folder, 592 .ctx,717
converting strings to all uppercase CreateFolder method, 586, CUndergraduateStudent
letters, 320 590,592 subclass, 666
convert pseudocode to Visual creating and traversing a binary cursor, 398
Basic, 106 tree, 919 . cur, 523
coordinate pair, 372 CreateTextFile method, . cur image file extension, 398
coordinate system, 372-373 586,602 cursor file (. cur), 522
coordinate system scales, 373 Create TextFile tab, 636 cursor image (. CUR file), 398
coordinate (0, 0),372 creating colors, 393 Currency, 109, 135, 139-140,
copies Printer property, 400 CRectangle subclass, 666, 165,324
Copy method, 592, 595 670---{i71 Currency (at sign, @), 165
CopyFile method, 586 CRectangle Implements, "Currency" named numeric
CopyFolder method, 586 671 format, 328
Cos function, 225 credit balance, 606 Currency type declaration
cosine, 225 credit inquiry program, 606-607 character, @, 135
Count, 924, 932 credit processing program, 619 Currency values, 335
count downwards, 133, 150 critical icon, 440 current, 909
counter, 101, 106 crosshair cursor, 510 current day ofthe month ("d"),
counter-controlled loop, 149-150 crossword puzzle generator, 370 345
counter-controlled repetition, cryptograms, 366-367 current day ofthe year ("y"), 345
101,111-112,131-132, CSavingsAccount subclass, current directory, 40
134,220 667 current hour ("h"), 345
counter-controlled repetition with Cshape superclass, 666, 668, current minute ("n"), 345
the For/Next structure, 670 current month ("m"), 345 132 CSng function, 326 current.NextNode,909
Count property, 276 CSpaceShip, 672 CurrentPosi tion property, Courier bold, 102 C-SPAN Radio Live, 882 888
:; 980 INDEX
current quarter (nqn), 345 database management system Data Link Properties dialog's current record, 794 (DBMS), 584, 609, 768 Provider tab, 774
current second (n s n), 345 Database Object ComboBox, DataList control, 412, 789-
Current State property, 888 798 790,793-794
currentURL property, 884 database provider, 774 DataList control (data aware)
current week (nwwn), 345 database sublanguage (DSL), 769 771 '
current weekday (nwn), 345 database system, 768 DataList property, 789
CurrentX, 375, 382, 513 database technology, 15 data manipulation language
Currenty, 375, 382 513 data-bound control, 797, 800 (DML),769
custom colors, 390 data collected in a survey, 253 data manipulations, 655
customize a form, 28-29, 716 DataCombo and DataList DataMember (data aware), 773
customizing a UserControl, control properties, 789 DataRepeater control (data
716 DataCombo control, 412, 789- aware), 772
customizing the environment, 33 790,794-795 data representation, 649, 652
custom member, 735 DataCombo control (data data representation of the ADT,
aware), 771 649 custom properties, methods and data component, 647 Data Source area of General
events, 734 Data control, 29-31, 410, 771 tab, 798
cut, 33 data definition language (DLL), DataSource property, 775, CVar function, 327 769 787-789,792,796 CVenutian,672 data dependent, 769 data structures, 16,248,898,901,
cy,688 data-driven application, 796 912,915,924
cyan, 391, 393, 514 Data Environment Designer, data type, 649, 932
cyber classroom, 16-17 772-773,775,796-800 data type Boolean, 153
Data Environment Designer data type Double, 135
window, 797 data types, 164-165
Data Environment object, data type Single, 106
D 772 data type String, 304--305
DataField (data aware), 773 data types that have type-declara-
Dartmouth College, 7 DataField property, 799 tion characters, 165
DAT,871 DataFields property, 789, 796 data type Variant, 898
dat prefix for database, 410 data files, 579 data validation, 655
Data, 899, 921-922 DataFormat (data aware), 773 date, 147, 165
data, 649 datagram, 823, 834 Date, 304, 325-326, 340-341,
data abstraction, 648, 666 DataGrid control, 412, 771, 343,348
Da taArri val event procedure, 773-776,784,786-788, DateAdd function, 345-346
824--825 793, 798 date and time functions, 340
data aware, 648 DataGrid control (data aware), DateCreated property, 592,
771 595 data-aware application, 771 DataGrid control events, 784 Date data type, 165,340 data-aware controls, 771-772, DataGrid control methods, 784 DateDiff function, 345-346
779-780
Database, 308 DataGrid control properties, Date function, 341
784-785 Da teLas tAcces sed property, database, 31, 309, 584, 633, 648 data hierarchy, 584--585 592,594--595 database access, 8 data independence, 768 Da teLastModi f ied property, database ActiveX controls, 412 data integrity, 656, 823 592,594-595 database controls, 411 Data Link Properties dialog, Date literal, 342
database language, 769 774-775,797 DatePart function, 344-345
database lookup, 811 Data Link Properties dialog's date representation, 326
database management, 15 Connection tab, 774 date separator, 417
-
~
INDEX 981
DateSerial function, 342, 344 declarations, 74, 90, 131, 181, DeleteFolder method, 586, date/time formats of function 652,661 590
Format, 349 declarations at the beginning of a Delete key, 34, 527, 569, 787 DateTimePicker control procedure, 74 Delete method, 592, 595
(data aware), 772 declared implicitly, 63 Delete tab, 638 DateValue function, 342-343 declaring arrays, 249 deleting an item from a binary Day function, 340-341 decrement, 133 tree, 924
dBase, 768 definite repetition, 101 deletion, 670, 898, 901
.DB Paradox database file exten- design, 159 delimiter, 356 sion designer, 669 Delphi,8
dbc prefix, 412 design-time, 392, 394 demonstrating an object with DblClick,511 design-time instance, 715 member objects, 661
DblClick ListBox event pro- design-time instance container, Department of Defense (DOD), 9 cedure, 424 716 dequeue, 917
dbl prefix, 412 design-time instance control, 716 Dequeue, 915, 917 DBMS, 768 . design-time properties, 426 Dequeue value, 917 DCOM, 14,648,711-713 design-time property Scroll- derived data types, 617 DDE property, 32 Bars, 483 DESC, 782 D: drive, 730, 748 deep indentation, 96 descending order, 781 Deactivate, 717 deeply nested structures, 161 DESC specifies descending, 781 dealing algorithm, 357 default, 653 description pane, 694 deallocate memory at run-time, default comparison type is Description property 544-
279 Binary, 308 545,547 debit balance, 606 default coordinate system, 373- design mode, 40, 57, 556-558 debug, 8, 11, 159 374 design time, 54, 774 Debug, 539 default cursor, 510 destructive read-in, 64 Debug.Assert, 559 default lower bound of 0, 253 device-driver object, 673 Debug button, 558 default mouse pointer, 509 device-independent drawing area, debugged,666 default names, 29, 649 401
debugger, 541,560,562 default printer, 400-401 DeviceName Printer prop-
debuggercommands, 562 default properties, methods and erties, 400
debugging, 13, 152,557,565, events, 732 devices, 3
567,655,670 default property, 75 DeviceType property, 871-
debugging strategies, 560 default value, 664 872,875
Debug menu, 33, 558, 562-563, default values for Optional dgd prefix, 412
568-569 arguments, 222 DHTML (Dynamic HTML), 16
Debug menu, 562 default Visual Basic data type, Diagram menu, 33
Debug. print, 559 165 dialog,57
Debug object, 559 degrees, 377 diamond, 94-95
Debug toolbar, 562-563, 567 degrees converted to radians, 377 diamond symbol, 92-93, 98, 134
Decimal, 326 [email protected],17 DialogTitle property, 622
decimal digit, 583 delegating, 688 . dib image file extension, 398
decimal point (.), 11, 140,323 delegation, 647, 666, 670, 688- dice game, 208
Decimal Point key, 527 689,693 dice-rolling program, 206, 256
decimal separator, 329, 331 delete, 33 dictionaries, 16
decisions, 2-3, 69, 94-95, 134, delete (remove a file), 821 Dictionary, 897-898, 928, 164 delete a record, 787 930-933
decision symbol, 92-93 DeleteFile method, 586 Dictionary object, 928
deck of cards, 356-357 Delete Folder, 592 die rolling program, 299
-
a 982
INDEX 1 die simulation, 256 distributed database, 769 Double (pound sign, i), 165 j
Digital, 861 divide and conquer, 12, 178, 180 double quotes (" "), 64, 109,304 digital clock, 893 divide by zero, 538 double-selection(If/Thenl digital clock ActiveX control, 724 divide-by-zero error, 539, 546 Else) structure, 161
DigitalVideo,871 division, 649 double-selection structure, 92, 95,
digit placeholder, 332 division by zero, 105, 197,649 140, 159
digits, 583 Division (float), 65 Double type declaration charac-
digits 0-9, 323 Division (Integer), 65, 67 ter, #, 135
Dim, 62, 90, 228, 249,278 dlgOpen, 622 doubleword boundaries, 619
Dim with Const in a declaration, dlg prefix for Common Dia- Do Until, 92
155 log controls, 394, 411 Do Until/Loop repetition
Dim with Public or Private, DLL,561 structure, 100, 109, 149,
228 .DLL extension, 748 151, 160, 164
dir (show a directory listing of the document, 11,459 Do While, 92
current directory), 821 documentation, 713 Do While/Loop repetition
direct-access, 616, 630 Document object, 850 structure, 99-100
directory, 579, 591 Documents Collection, Do While/Loop structure, 131,
directory path, 579 713 147, 149, 151, 160, 163
directory structure, 579 DOD,9 down-arrow button, 36
dir prefix, 410, 583 DoEvents function, 479 down-arrow key, 775
DirListBox control, 30-31, dollars, 140 download synchronously, 818
410,579-581,583,591- dollar sign ($), 139,304 drag, 13,31,647
592,597 Do/Loop Until, 92, 130, 149-Drag, 524
DirListBox Path, 582 151, 160, 164 drag-and-drop, 509, 520, 522,
disable an error handler, 555, 571 Do/Loop While, 92, 130, 148-712,798-799
disabled, 28 149, 151, 160, 164 drag-and-drop interface, 710
disabled button, 29 Do/Loop While repetition DragDrop, 521, 524-525
disabled sizing handle, 35 structure, 147 DragDrop property, 520
disabling error handlers, 541 Done event, 872 DragIcon property, 520, 523-
Don't show this dialog in the 524,580 disk, 3---4, 13 future CheckBox, 26 Drag method, 580 disk drives, 31 dot operator (.), 618 DragMode property, 520, 524, display, 656 Do traversals, 918 580, 727 Display, 683, 693, 901, 910- Double, 135, 140,327,898 DragOver event procedure, 520
911,914,917,927 double-clicking, 26-27, 51, 509, DragOver, 524
DisplayAsDefault property, 694 draw, 12 727 draw a rectangle, 376
displaying a line of text, 33 double-clicking a code module,
227 draw circles, ellipses, sectors and displaying images, 31 double-clicking an object, 54 arcs on the form, 378 Display method, 669 double-clicking the • exe ftle in draw circles on a form or control, DisplayMode property, 888 Windows Explorer, 498 374
DisplayName property, 727 double-clicking the mouse, 514 drawing area, 401
display text, 30 double-clicking with the left drawing as a solid, 383
DISTINCT, 793 mouse button, 26 drawing circles, 31
distributed application, 715 double-click speed, 511 drawing color, 386, 393
distributed client/server applica- Double data type, 165 drawing dash and dot combina-
tions,6 double-precision floating-point tion,384
Distributed COM (DCOM), 711 numbers, 165 drawing dash, dot, dot combina-
distributed computing, 5, 8,709, double-precision, floating-point tion,384
712 value, 325 drawing dashes, 383
-
r INDEX 983
drawing dots, 383 Dri veListBoxcontrol, 30-31, electronic-mail packages, 12
drawing graphics, 387 410,579-581,583,598 element, 673, 677
drawing in a PictureBox, 386 driver name, 400, 402 element of an array, 248
drawing inside the solid, 384 DriverName Printer prop- elements, 911, 932-933
drawing in the ForeColor, 383 erties,400 elements. HasMoreltems,
drawing in white, 383 drives, 579 911
drawing is invisible, 384 drive structure, 579 elements in an array, 677
drawing lines, 31 Dri veType property, 597 elements. Next Item, 911
drawing lines and rectangles, 376 drop, 13 8-3 format, 594 DropDown ComboBox proce- Eight Queens, 298, 535 draw lines and rectangles on the
dures,420 Eight Queens: Brute Force form, 376 drop-down list, 419-420, 494 Approaches, 298 drawing lines with Line control, drop the knight, 524 Eject, 870-871 387
drawing methods, 374, 382 drv prefix, 410, 583 ellipse, 12,376-378,388-389
drawing on forms, 374 dummy value, 103 ellipses button, 728 duplicate elimination, 923 ellipses with aspect ratios greater drawing program, 535 dynamically, 900 than 1, 376
drawing properties, 382 dynamically size an array, 283 ellipses with aspect ratios less
drawing spirals, 392 dynamic array, 248, 278, 282-283 than 1, 376
drawing text with method dynamic array program, 280 Else block of an If/Then!
Print, 375 dynamic audio and graphical El se structure, 97
draw lines and rectangles between kaleidoscope, 894 Elself, 96, 140
two sets of coordinates, 375 dynamic binding, 694 Else-part, 96
draw lines on a form or control, dynamic customized newsletter, embedded parentheses, 66
374 893 • emf image file extension, 398
Draw message, 673 dynamic data structures, 898 \Emp\,869
Draw method, 670, 672 Dynamic HTML, 811, 850 employeel, 665
DrawMode, 385-386 dynamic memory allocation, employee2, 665
DrawMode property, 382, 384 900-901 empty parentheses, 258 DrawMode property constants, Dynamic Stock Portfolio Evalua- empty record, 620
383 tion,858 empty shells, 673 DrawMode's default, 382 "dynamic" Web pages, 16 empty string, .... , 64, 196 DrawMode values, 382, 390
EnableContextMenu prop-DrawStYle,385-386 erty,888 DrawStyle property, 382, 384 Enabled, 254, 727 DrawStyle property constants,
E Enabled CheckBox, 435 383-384
Enabled ComboBox proper-DrawStyle's default value, 383 e,694 ties, 419 DrawStyle values, 383 early binding, 694 enabled error handler, 551 draw text on a form or control, earpiece of the telephone, 810 enabled control, 529
374 Earnings method, 677, 684, Enabled ListBox property, DrawWidth property, 382 691 424 drive, 584 e.Display,684 Enabled property, 61, 580 Drive, 583, 586, 591, 594 Edit, 27 Enabled scrollbar property, 428 DriveExits method, 586 Edit menu, 33 enabled sizing handle, 35 Drive FSO, 598 Edit Watch ... , 563, 569 Enabled MaskedEdi t control Drive property, 592, 595 Editor tab, 73 properties, 416
DriveLetter property, 597, Editor Format tab in the Enabled Slider property, 599 Options dialog, 58 431
984
Enabled TextBox property, 413
EnablePositionControls property, 888
EnableSelectioncon-troIs property, 888
EnableTracker property, 888
encapsulate, 14, 591
encapsulated, 646
encapsulate data, 646
encapsulation, 647, 653, 666
enclosing arguments in parenthe-ses, (), 183, 190
encryption, 366
End button, 41-42
EndDoc,401
End Enum, 214
End Function, 198
End If, 75, 95, 97-98
ending index, 485
end of a line, 599
end of a stream, 599
end of data entry, 103
end-of-file indicator, 800
End Select, 146-147
End statement, 57, 467
End Sub, 54,181-182,193,198, 539
endValue,781
End Width, 488
engineering applications, 8
English (United States), 342
enhanced controls, 714
enhanced metafile, 772
enhanced windows meta file, 398
enqueue,917
Enqueue, 915, 91T
Enter, 695
Enter, 659
Enter key, 34, 57,185,527
Enterprise Edition of Visual Basic, 9-10, 26, 411, 713, 822, 839
enterprise-level applications, 711
enterprise systems development, 17
Entity Integrity, 778, 788
entry point, 93
enumeration, 213-214
enumeration constants, 213
enumerator object, 673
EOF (1), 630
E-,333
e-:333
E+,333
equality operators, 156, 158
equality operators with Strings, 306
equal likelihood, 203
Erase, 280
Erase keyword, 279
Erase statement, 354
Err methods 544
Err object, 544--546, 555
Err object properties and meth-ods,545
Err properties, 545
error, 654
Error, 327, 545
Error event procedure, 825
error handler, 538-539, 554
error handling, 538, 550
error handling and debugging, 13
error-handling code, 542
error-handling code when using the WebBrowser control, 814
error-handling strategy, 538
ErrorMessage property, 871
Error property, 871
error trap, 541
error-trapping code, 542
Err properties 544
Err. Raise, 555
Err's Raise method, 555
Escape key, 527
Event, 180,695,697
event, 51, 647-649, 694
EVENT attribute, 850
event-driven programming, 2-3, 51,54,646
Event EventName, 695, 697
event handling, 9
event monitoring state, 51, 542
EventName, 697
EventName Event, 697
INDEX
event procedure, 51-52, 54, 56-57,62,178,227,664,665, 683
event procedure cmdAdd-_Click, 660
Events Public by default, 722 event type, 54
Excel, 712, 714
exceptional situations, 13
exclamation mark icon, 440
exclamation point, !, 310
exclamation point (!) Single type-declaration character 106 '
Execute method, 821
exercises, 17
executable, 7,131,756
executable file, 498, 822
executable statement, 90
execution-time, 901
execution-time environment, 672
execution-time error, 911
.exe file, 498, 754
exhausting memory, 217
existing classes, 666
Existing tab, 26
EXisting tab of New Project dialog
Exists, 931-932
exit, 656
Exit Do, 130, 151-152
Exit For, 130, 151-152
Exit Function, 194, 196-197,215,562
exit point, 93
Exit Property statement, 656
Exit Sub, 194, 196--197,215, 542,555,562,923
expanded menu, 434
Exp function, 225
explicitly set a reference, 665
"explosion" of calls, 220
exponential complexity, 220
exponential "explosion" of calls, 220
exponential function e", 225
exponentation, 64-67
expo~nts, 333
d
INDEX
expose, 716, 722
exposed properties, methods and events, 728
expression as a index, 248
Extender, 715-716
Extender object, 727
Extender properties, 727
extensible language, 649, 652
extensibility, 672
extension .DLL, 748
external identifiers, 198
F F AA (Federal Aviation Adminis
tration), 13
factorial, 215
False, 69, 75, 92-94, 153,324, 887-888,907,911
FAT, 599
fatal error, 538-539, 542, 551
fatal logic errors, 98, 105
fatal run-time errors, 562
FAT32,599
fault-tolerant, 538
Fibonacci series, 217, 301
field, 584, 770, 788
Fields object, 801
file, 13,579,584
File, 27, 586, 592, 594, 602
file downloading, 811, 815
FileExits method, 586, 603
File FSO, 593
File icons, 33
file 110, 810
File menu, 33, 590, 592
file open mode, 602
file position pointer, 630
File properties and methods, 592
file server, 915
file system object (FSO), 584, 586,599
FileListBox control, 30-31, 410,579-583,591-592, 594
Filename, 622
FileName property, 876, 887
FileSystem method, 599
FileSystem property, 597
FileSystemObject type, 586-587,591-593,596, 598,602-603
FileTitle property, 622-623
File Transfer Protocol (FTP), 811, 816
File variable, 603
fill, 376
FillColor,390
fill not visible, 384
fill solid, 384
FillStyle, 385-386, 390
FillStyle property, 382
FillStyle's default value, 384
Fillstyle values, 384
fill with crossing horizontal and vertical lines, 384
fill with diagonal lines, 384
fill with horizontal lines, 384
fill with upward and downward diagonal crossing lines, 384
fill with vertical lines, 384
film strip, 879
fil prefix, 410, 583
filter, 622
Filter function, 354--355
filtering, 355
Filter property, 622
final value of a loop counter, 149-150
final value of the control variable, 130,133
find, 33
Find, 485
fire an event, 723
firing an event, 695
first condition is False, 111
first-in, first-out (FIFO) data structure, 915
FirstName, 665, 693
first record, 776
first refinement, 104, 111
Fixed, 110,599
fixed-length string, 305
fixed-length record, 616-618
985
"Fixed" named numeric format, 328
fixed-size array, 248, 250, 278, 283,285
Fix function, 226
flag 1,332
flag.,331
flag E+OO, 333
flag #, 332
flag value, 103
FlatScrollBar,497--498
FlatScrollBar control, 411, 495
FlatScrollBar control interface, 496
FlatScrollBar control toolbox icon, 495
FlexGrid, 788
FlexGrid control (data aware), 772
flex prefix, 412
floating-point division, 65-67
floating-point division operator (I), 109-110
floating-point number, 65, 106, 109-110,165
floating-point type, 135
floating-point value less than 1, 339
floating-point values, 131
floating-point values automati-cally rounded, 331
floppy drive, 582
flowchart, 91, 95, 98, 134
flowcharting a For/Next repeti-tion structure, 134
flowcharting the Do/Loop Until repetition structure, 150
flowcharting the Do/LOOp While repetition structure, 148
flow charting the double-selection If/Then/Else structure, 95
flowcharting the select Case multiple-selection structure, 141
flowcharting Visual Basic's sequence structure, 92
986
flower shape, 393 flowlines, 91, 93
flow of control, 98, 100, 134, 150-151
flow of control for error handling, 562
F9key,566
focus, 53, 41, 418, 423, 443, 462, 542,872
folder, 40, 584
Folder, 594
FolderExits method, 586, 592
Folder FSO, 595
Folder properties and methods, 595
Folder type, 586 font, 373
font choices, 58
Font property, 32, 38, 52, 71, 727
font size, 38, 58 Font size, 728
font style, 28
Font window, 38-39
ForAppending, 602-603
ForeColor property, 38, 383, 386,514,526,528,547, 727-729
foreground and background col-ors,51
foreign key, 779
For EachiNext, 924, 927
For keyword, 133
form, 27-28, 51, 747
<FORM>, 846, 849
</FORM>,846
Form, 517
form atrributes, 28
Form_Click, 514
Form_Click event procedure, 380
form creation, 197 Form_Dblclick,514
form icon, 461
Form_Initialize, 753
Form_KeyDown, 527
Form_KeYPress,528
Form Layout window, 27-28, 31,33,35
Form_Load, 214, 255, 386, 471, 484,488,498,524,527, 652,665,683
Form_Load event, 688
form module, 178, 226-228, 250, 618,652,659,695
Form_MouseDown,437513
Form_MouseUp 513
form placement, 51
form's ForeColor property, 398
form's Picture property, 399
Form_Terminate, 753
form title bar, 214, 460
format, 110 format Currency, 139
FormatCurrency function, 335-337
FormatDateTime function, 348-349
format flag e+, 333
format flag 0, 331
Format$, 257, 271, 327-329
Format$ function, 110, 139, 178,186,348
Format MaskedEdit control properties, 416
Format menu, 33
FormatNwnber function, 333, 335,337
FormatPercent function, 338-340
format string" c", 353
format string "ddd", 352
format string" dddd", 352
format string" ddddd", 353
format string "dddddd", 353
foI1l1at string "d-mmm-yy", 352
format string" d-IIIIIIIIIIIl-yy", 352
format string "Hh:Nn:Ss AMI PM", 353
format string "IIIIIIIIIIIld, yyyy", 352
format string "ttttt", 353
formatted input/output, 608
formatted String, 139
formatting, 656
formatting flags, 329 formatting numeric values, 333
INDEX
formatting percentages, 338 form module, 649
Forms folder, 29
form's background color, 36
Forms Layout window, 474-475
form's Name property, 34 form's Print button, 228
form's title bar, 34
Form_Terminate, 603
Form_Unload, 472-473
form Width, 376 For/Next, 92
For/Next loop, 134
For/Next repetition Structure, 132
For/Next structure, 130, 133, 139,151,160,164,932
For Random keywords ForReading, 603
For statement, 688
For structure with arrays, 273
FORTRAN (FORmula TRANsla-tor), 7-8
forwarding, 912
forwards, 912
forward slash (I), 65
Forwri ting mode, 602-603
FoxPro,768 fractional part, 65
Frame control, 30, 208, 211,410
Frames, 871
Frame Scope, 180
Frames property, 871
Frame Type, 180
fra prefix, 410
FreeSpace property, 597, 599
frequency and duration of Beep, 112
Friend access, 755-758
Friend procedure, 756
• frm extension, 716
· frm file, 723 FROM clause, 782 FROM clause of a SELECT query,
782
FROM query keyword, 779
• frx files, 717 fsb preflx, 411, 495
--
INDEX
fsbFlat constant, 496
fsbScroll_Change,498
fsb3D constant, 496
fsbTrack3D constant, 496
FSO,586
FTP (File Transfer Protocol), 811, 816
FTP get command, 821
FTPprotocol, 816, 818
FTP root directory, 818
FTP server, 821
FTP server to which to connect, 818
FTP site, 821
Full Module View, 73
FullScreenMode,887
function, 646, 669
functionality, 689
function Array, 286-287
function Asc, 321
function call, 653
function CBool, 324
function CByte, 324
function CCur, 324
function CDate, 325
function CDbl, 325
function CDec, 326
function Choose, 147
function CInt, 326
function Chr$, 321
function CLng, 326
function CSng, 326
function CStr, 326
function CVar, 327
function Date, 341
function DateAdd, 345-346
function DateDiff, 346
function DatePart, 344-345
function DateSerial, 344
function DateValue, 343
function Day, 341
function Error, 545
function Fil ter, 354-355
function Format, 348
function FormatCurrency, 335-337
function FormatDateTime, 348-349
function Format$, 110, 139, 327-329
function Format $ and userdefined numeric formats, 329
function FormatNumber, 333, 335
function FormatPercent, 338-340
function Hex$, 323
function Hour, 347
function IIf, 95
function InputBox, 74, 109
function InStr, 313-314
function InStrRev, 315-316
function Int, 201
function IsDate, 342-343
function IsNumeric, 322-323
function keys, 527
function LBound, 251
function Len, 311
function LTrim$, 317
function MsgBox, 438
function Mid$, 311-312, 319
function Minute, 347
function Month, 342
function MonthName, 342
function Now, 147,340
function Oct$, 323
Function procedure, 11, 164, 178,186-187,214-215
Function procedure body, 186
Function procedure header, 186-187
Function procedure name, 186
function QBColor, 393
function Replace, 319
function RGB, 390-391
function Rnd, 201, 203, 206
function Second, 347
function Space$, 317
function Split, 355-356, 365
function Str$, 322
function StrComp, 306-307
function String$, 317
function StrReverse, 319-320
function Switch, 97
function Time, 346
function Timer, 208, 347
987
function TimeSerial, 348
function TimeValue, 348
function UBound, 251
function Val, 322-323
function WeekDay, 341, 344, 346
function WeekDayName, 341
function Year, 342
G gambling casino, 201
game of craps, 214
game playing, 201
game-playing program, 201
garbage collection, 900
garbage values, 106
"General Date", 350
general declaration, 62, 73, 145, 200,227,649
"General Number" named numeric format, 328
General tab, 416,571
Genie, 862, 867
Genie, 864, 866
geometric shapes, 398
German (Standard), 342
gesture, 869
GestureAt method, 869
get, 655-656
Get, 689, 693
GetAbsolutePathName method, 586, 591
GetChunk method, 822
get command, 821
GetData, 824-825, 836-837
GetDri ve method, 587
. GetDriveName method, 587, 592
GetFile method, 587, 594, 602
GetFileName method, 587
GetFolder method, 587, 597
GetHeader method for the Internet Transfer control, 822
Get IEmployee2 FirstName, 693
988
Get method, 869
getmethod,654-655
GetNumTicks Slider prop-erty,431
GetParentFolderName method, 587, 592
Get #1,629,633
Get statement, 630, 637-638
GetTempName method, 587
.gif, 257, 517, 592 GIP,772
GIP image, 398
.gif image file extension, 398
glitch,8
globe icon, 812
Go,548-549 golden mean, 218
golden ratio, 218
go left, 923
go right, 923
GoSerach method WebBrowser control, 815
GotFocus, 542
GotFocus Co!DboBox procedures, 420
GotFocus ListBox event procedure, 424
GotFocus scrollbar event procedure, 429
Got Focus Slider event procedure, 431
Got Focus TextBox event pro-cedure,4l3
goto elimination, 91
goto-less programming, 91
goto statement, 91, 161
graphical-based language, 8
graphical representlltion of an algorithm, 91
graphical representation of a binary tree, 918
graphical representation of a linked list, 901
Graphical setting of Style property
graphical user interface (GUI), 7, 9,12-13,16,27,51,409
graphical user interface development, 8
graphics, 8, 372, 861
Graphics Interchange Fo=at (GIP),398
graphics software package, 12
greater than, 111
greatest common divisor (GCD), 243
gray margin indicator, 566
green, 383, 391, 393, 514
green intensity, 390
green triangle identifying a proce-dure's calling point, 571
grid,35,716
GROUP BY query keyword, 779
grouping control, 30 GUI, 7,16,27-28,54,409,647,
659
GUI components, l3
GUI elements, 649
H halfword,619
handshake point, 831
hard disk, l3
hard drive, 579
hardware, 2-3
hardware costs, 15
hanging up a phone, 810
hangman, 366,407
hash marks, 724-725
"has a" relationship, 665, 667
HasMoreItems, 911
HAVING query keyword, 779
<HEAD>, 841-843, 849
</HEAD>, 841-842, 845, 849 ----neaG, 898
head of the queue, 915
Height, 376, 385
Height property, 31, 869
Help, 276, 539
helper method, 653
Help menu, 27, 33
heterogeneous computer systems, 810
heuristic, 296
Hex$ function, 323-324
hexadecimal format, 324
hexadecimal values, 323 hidden, 653
Hide event, 868 Hide method, 468
Hidden property, 580
HideSelection, 484 Hideselection
INDEX
MaskedEdi t control property, 416
hide text, 57
hiding implementation details, 179,711
high color images, 398
highest-numbered index value, 251
highlighted, 29
highlighted red, 566
highlighted yellow, 565
highlighting characters, 484
high-speed networks, 880
hierarchical boss procedure/ worker procedure relationship, 179
Hierarchical (data aware), 772
Hierarchical Flex Grid, 798
Hierarchical FlexGrid control, 412, 788-789
hierarchical form of management, 179
hierarchical relationship, 667
hierarchical structure, 667
hierarchy, 669, 671, 673, 689 high-level language, 6-7, 9
HireDate, 665
history list mechanism, 811
history lists, 811, 814
history of Visual Basic, 7 home page, 814
host container, 714
hosting ActiveX controls, 811 host language, 769
horizontal coordinate, 372 Horizontal Rule, 845
horizontal scrollbars, 4l3, 429, 484
horse race, 894
Hour, 656
Hour function, 346-347
a
r r
I ~
INDEX
hourglass cursor, 510
hourglass icon, 219
HourlyWorker,683
Hour property, 655
<HR> tag, 845, 849
hsb horizontal scrollbar prefix, 431
hsbScroll Change, 735
hsbScroll LargeChange, 735
hsb, vsb prefix, 410
HScrollBar control, 30-31, 427-428
hsbScroll's Max property, 429
hsbScroll.Value,431
<HTML>, 840-841, 842
</HTML>, 840, 841, 846
HTML (Hypertext Markup Lan-guage),16,481,815
HTML document, 822, 840-841
HTML form, 846
HTML overview, 840
HTTP (Hypertext Transfer Protocol), 811, 816, 869
HTTP download application, 818
http://msdn.microsoft.com/scripting/default/htm,840
http://premium.micro-soft.com/msdn/ library, 850
HTTPprotocol, 811
http://www.audionet.com,881
http://www.microsoft.com/workshop/ default. asp, 850
http:www.microsoft.com/workshop/imedia,862
http:www.microsoft.-com/workshop/imedia/agent, 862, 866
http://www.ncsa.uiuc.edu/demoweb/ url-primer.html,811
http://www.on-air.co~
880
http://www.real.com. 880
http://www.timecast.com,880
http://www.timecast.com/stations/ index. html, 880
http://www.w3 .org, 811, 840
hWnd property, 714
hyperlinking, 16, 811
Hypertext Markup Language (HTML), 16,481,840
HyperText Transfer Protocol (HTTP), 811, 816
I IAgentCtlCharacter,866
IAgentCtlCharacter interface, 866-868
IAgentCtlCharacter method Hide, 868
IAgentCtlCharacter method Show, 868
I-beam cursor, 509-510
IBM,S
IBM Corporation, 7
IBM Personal Computer,S
iCDirect, 822
icError state, 822
icNameProxy, 822
• ico extension, 214, 398, 523
icon, 772
icon file (. ico), 523
icon image, 398
icon image, 214
Icon property, 214
icons, 33
icuseDefault,822
UDE,9,11,26,29,57
UDE break mode, 562
UDE design mode, 40, 42
IDE during execution, 41
UDE feature, 185
UDE menu bar, 32
identifier, 62
identifier's storage class, 197
IDeviceDriver,673
989
IDrawableSpaceObject, 672
IEmployee, 677, 689
IEmployee reference, 683
IEmployee2, 689, 691, 693-694
If/Then block, 75
If/Then control structure, 95
If/Then/Else control struc-ture, 94--95, 97, 109
If/Then/Else double-selection structure, 140, 163
If/Then/Else selection structure, 92, 95, 97, 164
If/Then/Else structure, 159, 214
If/Then statement, 70
I f/Then selection structure, 92, 94
I f/Then single-selection struc-ture, 140, 163
If/Then structure, 69, 159
Ignore button, 439
IIf, 95,178
IIS,840
Us prefix, 412, 489
image, 16,373,398,822,861
Image, 517, 714
ImageBox, 465
ImageCombo ActiveX control, 715
ImageCombo control, 411, 489, 492-495
ImageCombo control (data aware), 772
ImageCombo control toolbox icon, 492
Image control, 30-31, 202, 399, 410,470
Image control (data aware), 772
image flasher, 893
image formats, 372
ImageList,492
ImageList control, 412, 489-491
ImageList control toolbox icon, 489
ImageList's Property Pages dialog, 489-491
image on a button, 188
990
image quality, 398
image types supported by Visual Basic, 399
Image variable, 203
image zooming, 894
imgcbo prefix, 411, 492
img prefix, 410
immediate access, 616
Immediate window, 40-41, 558-559
implemented, 693
implementing interface, 673
implementation, 646, 648, 653, 655,666,671,676-677, 689-691,693
implementation details, 591
implementation inheritance, 666, 670,688-689
implements, 648, 656
Implements, 672-673, 676, 688-689
Implements IEmployee2, 690,693
Implements interface, 677
Implements IShape, 676
implicity,653
implied loop-continuation condi-tion,132
Inch scale, 373
inconsistency, 768
incrementing, 132
increment, 659
Increment, 488
increment array index, 256
increment (or decrement) by which the control variable is
index bounds, 278
Index comboBox property, 419
indexed lists, 943
indexes begin at numbers other than 0,248
Index ListBox property, 424
Index property, 275-276, 484
index range, 273
Index Slider property, 431
Index scrollbar property, 428
Index TextBox property, 413, 492
infinite loop, 98, 100, 149-150, 217,220,560
infinitely, 110
infinite recursion, 217, 220
infinite repetition, 101
infinity symbol, 779
information hiding, 591, 646, 648,653,666
information packet, 915
inherit, 669, 688
inheritance, 647, 666-669, 688
inheritance by delegation, 666
inheritance hierarchy, 668, 670
inheritance relationship, 667
inherited interface member, 676
inherit interface, 671
inherit the instance variable and instance methods, 666
initialization, 134
initialization phase, 104, 108
initialize, 661
initialize an array, 250
initialized, 652
modified each time through Initialize event, 665 the loop; 130--------- ---------initializerFlags, 570
increment of a For/Next struc- initialize total variables to 0, 106
ture, 133 initializing array elements to 0, increment of control variable, 133 251
indefinite postponement, 357
indefinite repetition, 103
indentation, 56, 94, 96-97, 131, 147
indentation convention, 94
indentation in a query, 783
independent software vendor (ISV), 33, 669
index, 248
initial value ofthe control variable, 130, 133
InitProperties,738
InitProperties eventprocedure,723
inline scripting code, 842
inline VBScript code responding to an event, 848
INNER JOIN, 782, 784, 793
INDEX
INNER JOIN operation, 782-783 innerloop,112
innermost pair of parentheses, 66 inner scope, 198
inorder, 918
InorderHelper, 922-923
InorderTraversal,922-923
in-place activation, 714
in-process, 750
in-process component, 746 input, 11, 27
input actions, 11
InputBox, 72, 74, 109, 111, 477,842
input device, 4
input dialog, 70, 74
input focus, 872
input/output actions, 160
input stream, 810
<INPUT> tag, 846
input unit, 4
Insert, 918, 922
Insert, 922
InsertAtBack, 907-909, 912
InsertAtFront,907-908
insert/delete anywhere in a linked list, 942
insertion, 898, 901
Insert key, 527
Insert Picture ... , 490
insertURL, 884
instance, 715
instance method, 666-667
instance of a class, 647-648, 665
instance variable, 647, 650, 652-657,660-661,664-667, 669,695
instant-access application, 616
instant access processing, 633
instantiate, 646-647,661,671, 688,914,917
instantiate an object of a class
instantiated, 652, 671, 673, 690
InStr function, 312-315, 317
InStr and InStrRev, 316-317
InStrRev function, 315-316
integer, 932
-
I
l
INDEX
Integer, 60, 62,106,131,164, 326,647-648,650,652, 664,898
Integer arguments, 650
Integer data type, 165
Integer division, 65-66
integer division operator (\), 64, 109-110
integer index, 924
Integer (percent sign, %), 165
Integer remainder after Integer division, 65
integers, 918
Integer type declaration character,62
Integer variable, 650
IntergralHeight property, 789
integrated development environ-ment (IDE), 9, 11,26,556
integrity, 768
Intel,861
interactive animated characters, 862
interactive Web pages, 16
interactivity, 16
interest rate, 135
InterestRate, 655
interface, 591, 647-648, 655, 667, 671-672,676-677,710, 912
interface class, 671, 673
interface inheritance, 666, 670, 673,688-689
interface inheritance example, 673
interface name, 676
internal class data, 655
Internet, 15,709, 809, 880, 882
Internet-based applications, 15
Internet Explorer browser, 811,814-815,840-841, 845,880,882,850
Internet Explorer 4.0, 498
Internet Explorer 4.0+, 715
Internet Information Server (lIS), 840
Internet IP address, 825
Internet Options ... from View menu, 814
internet-related controls, 811
internet search, 811
Internet Transfer control, 821-823,825
interoperability,710
interpreter program, 7
interprocess communication, 750
Interrupt method, 869
interval, 31
Interval property, 391
Int function, 225
intranet, 709
intrinsic control, 409, 411-412, 419,427,579
invalid port number, 828
invalid value, 650
inventory file, 584
Inverse, 383
Inverse, 399
inverse of an image, 383, 399-400
inverse of black, 383
inverse of green, 383
inverse of the display color, 383
inverse of vb Copy Pen, 383
inverse of vb Mask Pen, 383
inverse of vb Merge Pen, 383
inverse ofvbXorPen, 383
inverse operation on a bitrnap, 399
invoke, 649, 652-653,672, 677
invoke a procedure, 179
invoking a procedure, 180
IP address, 825-826, 831, 834
IP address for the server, 831, 837
IP address of computer that sent packet, 836, 838
IP address of remote machine, 831,837
IP address of the client, 828
IP address 127.0.0.1, 825
IQuadrilateral,671--672
iRef, 676, 683
"is a" relationship, 667
ISBN number, 777, 783
Is key in Dictionary already?, 932
IsDate function, 343
IsEmpty, 907-908
IsEmpty method, 656
IsFull,656
991
IShape, 673, 676, 684, 912, 917
IShape_Area,676
IShape example, 675
IShape interface, 673
IShape_Name, 676
IShape_ToString,676
IShape2, 684
IsNumeric function, 322-323
IsQueueEmpty,917
IsReady property, 597
IsRootFolder property, 595, 597
IsSoundCardEnabied method, 889
IsStackEmpty,912
ISV controls, 714
Item, 924-925 931
Items, 932
iterate, 924, 927
iterating, 907
iteration, 112, 220-221
iteration of a loop, 103
iterative solution, 221
iterative version of function BinarySearch,269
Iterator, 907, 910, 912, 917
iterator, 673, 911
iterator class, 673
iterators, 912
IThreeDimensionalOb-ject,671
ITwoDimensionalObject, 671
ITwoDimensionalShape, 673
IUnknown, 710
J Jacopini, G., 91, 162
Java, 8-9, 647, 666,670
join, 770-771
Join function, 353
joining tables, 782
job, 4
992
Joint Photographic Experts Group (JPEG),399
JPEG,772
JPEG image format, 399
• jpg image file extension, 399
K karaoke, 894
Kemeny, J., 7
key, 509, 928
KeyAscii variable, 529, 531
keyboard, 3-5, 11, 13,409, 509, 862
keyboard events, 13, 526
KeyCode parameter, 528
KeyDown, 526, 528
KeyDown TextBox event pro-cedure,413
key event constants, 527
key events, 509, 526, 528
keypad,614
keypad numeric keys, 527
KeyPress event, 526, 529, 531
KeYPreview property, 529-530
Keys, 933
KeyUp, 526, 531
KeyUp TextBox event proce-dure,413
key value, 266
key/value pairs, 928, 932
keyword, 57, 62, 92, 506
keyword ByVal, 260
keyword Event~ 695.
keyword Implements, 671
keyword ParamArray, 285
keyword ReDim, 278
keyword Set, 665
keyword Step, 382
keyword To, 257
keyword TypeOf, 694
keyword New, 649, 900
keyword Public, 653
keyword WithEvents, 697
KillDoc,401
kinetics, 894
KIS ("keep it simple"), 10
knight, 522
Knight's Tour, 295, 535
Knight's Tour: Brute Force Approach, 297
Knight's Tour: Closed Tour Test, 298
Kurtz, T., 7
L Label, 51, 71, 74,101,714,717
Label control, 30, 33, 36, 410
Label control (data aware), 772
Label's Alignment property, 437
Label's BackColor property, 38
Label's BackStyle property, 38
Label's Caption property, 36
LabelScrollbar ActiveX control, 719
Label's default property is Caption, 75
Label's font size, 38
Label's text, 38
LAN,5 LANGUAGE attribute, 850
LANGUAGE of a script, 844
late binding, 694
LargeChange property, 432, 496,498,733,735
LargeChange scrollbar property,428
LargeChange Slider property,431
last-in, fIrst-out, 912
last-in, first-out (LIFO) data structure, 648, 912
last-in, first-out order, 648, 912
LastName, 665, 693
last record, 776
layered software system, 672
lbl prefIx, 410
lblRemoved.Caption,925
LBound, 251, 254, 273, 276, 484
LBound statement
LCase$ function, 320
leading spaces, 317, 323
leaf node, 918, 922
INDEX
Learning Edition of Visual Basic 9-10,411 '
least significant bits, 520
Left, 921
left-arrow key, 775
left button, 515
left child, 918
left-justification, 139
Left Justify, 38
left mouse button, 26, 31, 515-516
Left property, 869
left subtree, 918, 921-922-923
left-to-right order, 67
Left$ function, 312-315, 365
LEN, 623,626, 629
LenB,622
Len function, 311
length of current track, 871
Length property, 871
less than or equal to, 111
Let IEmployee2, 693
Let keyword, 63
Let mFirstName, 689
letter, 583
level-order binary tree traversal, 941
level-order traversal of a binary tree, 924
levels of nesting, 112
library, 694
lifetime, 197
lifetime of ActiveX controls, 715
lifetime of a COM component, 710
lightweight controls, 714-715
Like operator, 309-310, 780-781
limericks, 365, 893
line, 12
Line, 376, 383, 387,401
line-continuation character, _, 75, 95, 736
Line control, 30-31, 387-389, 410
INDEX
Line control icon, 387
line length and position, 387
Line method, 374-375, 382
Line property, 600
linear data structures, 917
linear search, 266, 269
linear search program, 267
Line Step, 382
"lingo" of the field, 11
linked list, 648, 656, 667, 673, 897-898,900-901,906, 912,917
link member, 912
links, 900
lin prefix for Line controls, 388,410
list, 16,912
List, 327,329, 789
list and queues without Tail references, 942
ListBox, 138, 185,412,901, 927
ListBox control, 410, 428
ListBox control (data aware), 772
ListBox intrinsic control, 423
ListBox lstItems, 932
ListBox lstKeys, 932
ListBox property Sorted, 426
ListBox styles, 425
list class, 912
List ComboBox property, 419
List control, 30
ListCount comboBox property,419
ListCount ListBox prop-erty,424
ListCount property, 423, 5'80
Listen, 828
listening for events, 51
Listen method, 824
listen to your voice, 16
ListFields property, 789, 792, 796
ListImage index, 494
ListImage object
ListImages, 492
ListImages Collection, 492
ListIndex ComboBox property,419
ListIndex ListBox property,424
ListIndex property, 423, 580, 594,597
list.InsertAtBack,917
list.InsertAtFront,912
List is empty, 901, 908-909
list. IsEmpty, 912,917
ListItems, 932
List. Iterator, 911
list. Iterator, 912, 917
List ListBox property, 424
ListKeys, 932
List property, 580, 583
list. RemoveFromFront, 912,917
literal characters, 417
live audio, 880
live-code examples, 17
live video, 880
Load,717
load an image into memory, 190
LoadFile, 484
Load method, 467, 472, 479
LoadPicture, 517, 521, 524
LoadPicture function, 178, 190,203,257
Load/Unloaded, 732
local area network (LAN), 5
local array, 249
local document viewing, 811
local dynamic arrays, 278
LocaleID property, 727
localHost, 825, 831, 837
localHost connection, 832
LocalHostIP property of Winsock control, 839
LocalHostName property of Winsock control, 839
local machine, 825, 835
LocalPort property, 823, 828
LocalPort property of win-Sock control, 839
local processing, 769
local scope, 198
Locals window, 567-568
Locals Window, 567, 570
local variable, 198-199,203, 567-568,652
993
local variables declared Static, 198,201
location, 248
LocationName property WebBrowser control, 815
LocationURL property WebBrowser control, 815
Locked ComboBox property, 419
Locked TextBox property, 413
logarithm, 226
.log extension, 561
log file, 561
Log function, 226
logging changes to a database, 801
logical decision, 3
logical operators, 130, 156
logical negation, 156
logical negation operator, 157-158
logical units, 4
logic errors, 69, 98, 104-105, 110, 133, 191, 665
Login,477
Logo language, 300
Long, 145,213,248,326,695, 898
Long (ampersand, &),165
Long data type, 165
"Long Date",350
long name format, 594
"Long Time",350
Long type declaration character, &,145
Long value representing a color, 390
look-and-feel,398
Look-and-Feel Observations, 10
loop, 105, 112
loop body, 103
loop-continuation condition, 131-133, 147-148-149-150
loop-continuation condition fails, 220
loop-continuation test, 100, 103, 132
994 INDEX 1 loop counter, 130, 252 manipulating colors, 390 MCI Control Shareable LoopsX property, 885 manipulating text, 480 property, 875
LoopsY property, 885 manual drag-and-drop, 520---521, MCI Control Update-
LostFocus, 542 524 Interval property, 875
LostFocus comboBox proce- "manufacturing" section of the MCI Control Wait property,
dures, 420 computer, 4 875
LostFocus event, 423 mapping, 735 MCI device, 871
LostFocus ListBox event margin indicator bar, 54, 58, mciModeNotOpen, 871
procedure, 424 566 mciModepause, 871, 876
LostFocus scrollbar event pro- Marlowe, Christopher, 367 mciModePlay, 871, 876 cedure, 429 Marquee control, 882, 885 mciModeReady, 871
LostFocus Slider event pro- marshaling, 750 mciModeRecord, 871 cedure,431 mask,141 mciModeSeek,871
LostFocus TextBox event Masked Edit control (data mciModeStop, 871 procedure, 413 aware),772 mCommission, 683
lost packets, 81O Mask MaskedEdi t control mCommissionworker, 693 Lovelace, A., 9 property, 412, 414-419, mCommissionworker's lower bound, 250-251, 253, 257 600,602-603,714 FirstName, 693 lower bound of 1, 254 masked off, 520 mCommissionworker2,693 lower bound of 0, 253 masking, 142 mDay, 664 lowercase letters, 320, 417 masking characters, 141 "m/d/yy",351 lower-right corner, 373 MatchEntry property, 789 MD! application, 460 lowest-numbered index value, math functions, 225
MD! child form, 465 251 Maximize button, 464
MD! child form icon, 461 \Lst\,869 Max property, 488, 496, 498, 733
MDIChild property, 461-462, lstItems, 932 MaxLength MaskedEdi t 468-469 lstKeys, 933 control properties, 416
MDI child window, 463 1st ListBox prefix, 410, 426 MaxLength property, 62
MDIform, 460-461 LTrim$ function, 317-318 MaxLength TextBox prop-
MDI parent form, 462, 466-468 lstOUtput,911 erty,413
MDI parent form icon, 461 Max scrollbar property, 428
Max Slider property, 431 MD! parent window, 463
mBankBalance, 653 MDI parent window Caption,
mBirthDate, 656, 661, 665 465
M mBookmark,910---911 mean, 67
mBookmark.Data, 911 media, 871
m-by-n array, 272 mBookrnark.NextNode, 911
Media Control Interface (MCI),
machine code, 498 870
machine dependent, 6 mB()ss, 693-:-694
"Medium Date", 350 MCIcommand,871
machine language, 6,709 MCI Control, 870-872, 875
"Medium Time", 351
machine language code, 10,912 MCI Control Command prop-member, 584,667,694-695
Macintosh, 12 erty, 876 member access specifier, 653
magenta, 383, 391, 393, 514 MCI Control DeviceType Member Options dialog, 728
magnetic disk, 579 property, 875 Members ListBox, 694
mail, 823, 834 MCI Control FileName memory, 3, 669
Make Project dialog, 730-731, property, 876 memory exhaustion, 538
748 MCI Control Mode property, memory unit, 4
Make Project1.exe ... , 498 876 mEmployee, 690, 693
make your point, 208 MCI Control Notify prop- mEmployee's FirstName,
manipulating a linked list, 902 erty, 872, 875 693
.,--f
q
r INDEX 995
mEmployeeRef,693 mFirstName, 661, 665, 689 Microsoft Scripting Runtime, 928 eEmployeeRef CBoss2, 693 mFirstNode,907-910 Microsoft Scripting Runt-menu, 13,27 mFirstNode.Data,907-908 ime, 585-586, 928 menu bar, 27, 32 mFirstNode.NextNode,909 Microsoft's COM (Component
menu control arrays, 434 mHireDate, 661, 665 Object Model), 647
Menu Editor dialog, 434-437, mHour, 650, 652, 654-655, 657, Microsoft's Internet Explorer,
462 659,683 810
menu is grayed (or disabled), 435 Microsoft Access database, 309, Microsoft's MFC (Microsoft
menu item, 434 768, 774 Foundation Classes), 647
menu summary, 33 Microsoft ActiveMovie Con- Microsoft Visual Studio 6.0,
Merlin, 862, 864, 867 trol,887 713
message, 591 Microsoft ADO Data Control Microsoft Web site, 840, 862, 868
MessageReflect property, 6.0,774, 789 Microsoft Windows, 9, 51
727 Microsoft Agent, 862, 867 Microsoft Windows Com-
metafile, 772 Microsoft Agent animated char- mon Controls 6.0, 489, 492
method, 646, 648, 653-657, 661, acters,866 Microsoft Windows Com-
665,672,676,688,694 Microsoft Agent Character Edi-mon Controls-2 6.0, 485,
method calls, 653, 665, 672 tor, 862 495,879
method Circle, 376 Microsoft Agent control, 864-Microsoft Windows, 7
method definition, 654 865,868 Microsoft Winsock Control
method Form_Load, 471 Microsoft Agent control event 6.0, 823, 825
method Line, 375, 387 procedures, 867
Microsoft Word, 459, 509, 747 Microsoft Agent Control 1.5,
method MoveTo of the 864 Microsoft Word 8.0 Object
IAgentCtlCharacter Microsoft Agent documenta-
Library, 712 interface, 868
tion,868 Microsoft Word Pad, 480
method name, 676 Microsoft Agent events, 868
Mid$ function, 311-312, 319, method of the class, 665 365 method Paintpicture, 399
Microsoft Agent speech engine, middle button, 515
870 method Play, 867
Microsoft Agent Web site, 862 middle element of an array, 266
method Play of interface Microsoft-based systems, 6
MIDI (Music Instrument Digital IAgentCtlCharacter, Interface) audio, 885 867 Microsoft Chart control (data MIDIsequencer,870
method Print, 374 aware), 772
midnight, 347 method Print Form, 402
Microsoft Common Dialog Millimeter scale, 373
Control 6.0, 394-395, 622 method PSet, 379-380
Microsoft DataGrid Control milliseconds, 391, 870
method SavePicture, 399 6.0,789 Minimize button, 464
method Scale, 373-374 Microsoft Internet technologies, Min property, 488, 496, 498, 733
method Scalex, 374 850 Min scrollbar property, 429
method ShowColor, 398 Microsoft Internet Transfer Min Slider property, 431
methods of a class, 650, 653 Control 6.0, 816 minus sign character (-), 377
method Speak, 867 Microsoft Jet 3.51 OlE DB Minute function, 346-347
method Speak of the IAgent- Provider, 774, 797 Misc property, 32
CtlCharacter interface, Microsoft Linguistic Sound mission-critical computing, 13 867-868 Editing Tool, 862 mkdir (make a directory), 821
method Textwidth, 375 Microsoft Multimedia Con- mLastName, 661, 665, 689 metric conversion program, 369 trol 6.0, 872 mLastNode,907-91O mEventRaiser, 697 Microsoft Paint, 188,730 mLastNode. Data, 908-909 mEventRaiser_EventName, Microsoft Rich TextBox mLeft,921-922
697 Control 6.0, 480 mLeft • Data, 922
996 1"
INDEX
mMinute, 650, 652, 654, 657, mouse, 12-13,380,409,509,862 MovieWindOWSize property, 659 mouse button, 12,516-517 888
MMMovie, 871 mouse button contents, 515 moving the mouse, 13, 509 mMonth, 661, 664 "mouse" device, 4 MPEG (Motion Pictures Experts mMyCollection,924 mouse event, 13, 509 Group) audio and video,
mMyCollection- MouseDown, 515, 522 885
. Item(index), 925 MouseDown event procedure, mQuantitY,683
mMyDictionary,930 511,517 mQueue,917
mNextNode, 899,906 MouseDown procedure, 437, 512 mRadius, 676
mNodeData, 899, 906, 922 mouse events, 511-514 mRight, 921-922
mNullIber, 695, 697 MouseMove event, 515, 517 mRight . Data, 922
mnu Menu prefix, 434 MouseMove event procedure, mRoot,922
Mod, 64-65, 67 511 mSalary, 683
modal, 74, 394, 471, 475, 550 mouse pointer, 13,29,31,398, mSecond, 650, 652, 657, 659-
modal Color dialog, 398 416,509,724 660
modal dialog, 539 mouse pointer changes shape, 31 MsgBOX,843
modal forms, 470, 472 MousePointerComboBox MsgBox constant, 439, 443, 901,
modal References dialog, 585 property, 419 908-909,932
modeling, 591 MousePointer constants, 510 MsgBox constant for icons, 440
mode of MC I devices, 871 MousePointer ListBox MsgBox dialog, 439-440, 442
Mode property, 871, 876 property, 424 MsgBox function, 438, 442, 477
modifiability, 648 MousePointerMaskedEdit MsgBox icons, 440
modification, 655 control property, 416 MsgBox is modal, 440
modality, 440 mouse pointer passes over an MsgBox return value, 441
module, 178, 689, 694 item, 423 mShapeType, 669
module array, 249 MousePointer property, 219, msk prefix, 412
module dynamic arrays, 278 509, 511, 580 MS Sans Serif, 38, 61
module scope, 198,214 MousePointer scrollbar prop- MS Sans Serif Bold 12 pt, 52
module-level variable, 145-146, erty,429 mStack,914
650 MousePointer Slider prop- msvbvm60.dll,498
module variables, 198-200, 227, erty,431
mTree,918
256,591 MousePointer TextBox mTree.InsertNode,918
modulus operator, Mod, 64-67 property, 413
MUI,16
monetary amounts, 109 mouse pointing device
multidimensional array, 271-273
monetary calculations, 135, 140, Mouse properties dialog's
multidimensional array program, 324
Button tab, 511 273
monetary values,16,5 MouseUp, 515
multilined TextBox, 414
monochrome images, 398 "--MotisEiUpevent,511
MultiLine property, 484, 787
monolithic construction, 11-12 MouseUp event procedure, 517 multiline TextBox, 314
monolithic program, 221 mouthpiece of the telephone, 810 MultiLine TextBox prop-
Monotone, 869 mOutputString,923 erty,413
Month function, 340, 342 Move event, 868 multimedia, 8, 16,411,809,861
MonthName function, 340, 342 MoveFile method, 587 multimedia-based Simpletron
MonthView control (data MoveFolder method, 587 Simulator, 894
aware), 772 Move method, 592, 595 multimedia cyber classroom, 16
More ActiveX Designers ... , MoveNext procedure, 800 Mul timedia MCI Control,
797 MovePrevious procedure, 801 870-875
Morse Code, 246, 369, 858 move windows, 509 multimedia user interface, 16
most significant bits, 520 movies, 16 multiple calls, 660
INDEX
multiple document interface (MD!) application, 459
multiple forms, 461, 469-470, 475
mUltiple inheritance, 667
multiple interfaces, 648, 667
multiple-line If/Then or If/ Then/Else statements, 98
multiplication, 649
MultiSelect ListBox property,424
MultiSelect property, 580
MultiSelect property values, 425
multiple selection, 140
multiple selection in a ListBox, 425
multiple-selection structure, 92
multiplication, 64-66
multiprogramming, 5
multitasking, 9
multithreaded Visual Basic pro-grams, 9
multithreading, 8-9
"Murphy's Law", 13
music, 16
mutator method, 655
mWage,683 mWageperpiece,683
mWeeklySalary, 677, 691
mx,676
mY, 676
mYear, 661, 664
N Name, 671, 673,688
NAME, 846, 849
Name ComboBox, 728
name of a control variable, 130
name of an array, 249
Name property, 34, 52, 71, 467, 592,595,649,869
named arguments, 223-225
named constants, 213
named numeric formats, 328
named numeric formats, 327
NASA (the National Aeronautics and Space Administration), 13
NASA Live, 882
native code, 10,459,498,754
native code executable, 498
"natural Language" of a particular computer, 6
natural logarithm, 226
Navigate method of Web-Browser control, 815
navigation, 811, 815
negation, 66
negation operator, -,65
negative angles, 377
negative exponent, 333
negative integer, 649
negative value, 323
n elements, 924
nested, 111
nested building blocks, 161, 163
nested control structures, 110, 140, 161
nested error handlers 544
nested For loops, 266, 273
nested For/Next loops, 133
nested For structure, 357
nested INNER JOIN operation, 783
nested loops, 112
nested On Error statements, 543
nested parentheses, 68
nested repetition structure, 112
nested structures, 161
nested transaction, 801
nesting, 93-95, 110, 164
nesting rules, 161
Netscape's Communicator, 810
Networked Morse Code, 858
Networked Simpletron Simulator, 858
Networked Tic-Tac-Toe, 858
network programming, 15
networking, 6, 8, 15,411
New, 649, 652, 660-661, 688, 697,924
New CListNode, 907-908
new folder, 40
997
Newlndex ComboBox property,420
Newlndex ListBox property, 424
Newlndex property, 423
New keyword, 591
newline,94
NewPage, 401
New Project dialog, 26-27, 717-718
New Project from File menu, 717
New Record tab, 637
New tab of New Project dialog, 26
Next, 132, 870-871
Nextltem, 910-911
NextNode, 899, 907-908
next record, 77 6
node. Data, 923
nodes, 900-901
nodeToAdd, 900
nondestructive read-in, 64
nonfatallogic errors, 98
non-interlaced GIP images
nonlinear, two-dimensional data structures, 917
non-masking characters, 417
nonrecursive procedure calls, 912
non-Static local variable, 197
nonzero area, 676
Normal, 869
Not, 310
Not (logical NOT), 156-157
Notepad, 459, 481
Nothing, 594, 660-661, 665, 753,899-900,907,909-910,912,918,922-923
Nothing reference, 899
Notify property, 871-872, 875
not ready, 583
noun, 647
Now function, 147,344,349
Mull, 97, 147,327,908-910
Mull values, 333
Mumber property 544-545
number with a decimal point, 106
numeric codes, 304, 308
numeric data, 12
numeric keys, 527
998
o object, 52, 590, 646-648, 652,
657,660,665-666,668-669,672-673,677,694,900
object-based programming (OBP),647
Object box, 53, 55, 676 Object Browser, 694, 728-729
Object Browser from View menu, 728
Object Browser window, 694-695
Object ComboBox, 722
Object data type, 165 Object Linking and Embedding
(OLE),712 object name, 184 object of a class, 649-650, 672
object-oriented, 650 object-oriented analysis and
design, 710 object-oriented design process,
669 object-oriented language, 666 object-oriented operating system,
673 object-oriented programming
(OOP), 2-3, 8, 591, 646-647,653,666-667,669-670,673
object-oriented system, 669 object orientation, 666 object properties, 71 object reference, 661, 672 Obj ect reference, 694 objects of that superclass, 668 object speak, 646 _ _ __ __
object technology, 14
object think, 646 object wakeUp, 649
octal format, 324 octal values, 323 oct$ function, 323 .ocx control, 730 .ocx extension, 730 off-by-one error, 134, 149,249 Offline property Web-
Browser control, 815
offscreen image, 386
OK button, 74 OLE,711-712 OLE_COLOR,727-728 OLE control, 30-31, 410, 714 OLE DB data source, 774
ole prefix, 410 OnBl ur event of intrinsic HTML
control, 847 OnBounce event, 885 OnChange, 850 OnChange event of intrinsic
HTML control, 847
OnClick event of intrinsic HTML control, 846
On Error Goto statement, 541-542544,554,561-562
On Error Goto 0 statement, 541554-555
On Error statement 543 one-armed bandit, 894 one-dimensional array, 272 OnEndOfImage event, 885 one statement per line, 76 one-to-many relationship, 779
OnFocus event of intrinsic HTML control, 847
on-line product catalog, 894 on-line Visual Basic documenta
tion,713 OnMouseClick event, 885 ON part of INNER JOIN clause,
782 OnScroll event, 885 OnSelect event of intrinsic
HTML control, 847 onStartOfI~ge event, 885
OOAD,710 Opaque, 38
Open, 26 Open, 870-871 OpenAsTextStream, 602-
603 Open AVI File to Play button,
876 Open File to Play button, 887 open ForWriting mode, 602
Open statement, 623 OpenAsTextStream method,
592 opening a project type, 26
INDEX
opening projects, 33
OpenTextFile method, 587
OpenllRL, 816-818, 821
operand, 64
operating system, 5-6, 672-673
operations allowed on the data of theADT,649
operator Like, 309-310, 780
operator Not, 157,310
operator Or, 157
operator precedence, 66
optical disk, 579
optimization, 498
Optimize for Fast Code, 498
Optimize for Small Code, 498
<OPTION>, 850
</OPTION>,850
Optional, 221
optional arguments, 221
Optional arguments, 222-224
optional parentheses around argu-ments,191
Option Base 1,254,278
Option Base statement, 253, 257
Option Base 0,257,278
OptiOnButton, 440, 498, 511, 554
OptionButton control, 30, 410
Options ... command, 185
Options dialog, 185
Option Compare statement, 308-309
Options dialog Editor tab, 73
Option Explicit statement, 73,559,842
optOption_C1ick,498
opt prefix, 410
Or (logical OR), 156-157
Oracle, 768
order, 11,89
ORDER BY, 782, 796
ORDER BY clause, 781-782
ORDER BY query keyword, 779
ordered list, 308
ordering instructions for the CD, 16
-
..-I
INDEX 999
orientation property, 488, parameter variables, 182 payroll calculation, 677 496 PARC, 12 payroll system, 584, 677
orientation Slider prop- parent folder, 592, 595, 597 p-code, 498 erty,431 Parent Folder property, 592, PeekDa ta method of Win Sock
origin, 372 595 control, 839 origin (0, 0), 373 parent form, 461, 469 pen, 383 Other, 871 parent node, 918 Pentium IT from Intel, 861 outer scope, 198 parent window, 460 percentage that the printed output out-of-bounds array index, 538 parentheses, (), 66, 69, 248 is scaled, 401 out of scope, 665 parentheses around arguments, "Percent" namednumericfor-output, 11,27 191 mat, 329 output actions, 11 ParkCar, 670 percent sign, %, 62 output device, 4 partitioning step, 299 performance, 653 output stream, 810 Pascal, 2, 8-9 performance of binary tree sorting output unit, 4 Pascal, B., 9 and searching, 943 oval,389 pass, 182 Performance Tips, 10 oval symbol, 92 pass-by-reference, 683 period ( .), 184 overflow error, 217, 546 pass of a file, 609 Period key, 527 overlapping building blocks, 163 passing an argument, 183 persist, 723 Overlay, 871 passing an array to a procedure, persistent, 13, 579 overridden, 668 260 personal computer, 3, 669 overridden method, 672 passing arguments call-by-value, personal computing, 5
191 Photoshop, 188 passing array elements to a proce-
physical device, 673 dure, 260
passing arrays call-by-reference, physical format, 768
P 259 physics demo: kinetics, 894
passing arrays to procedures, 258 Pi,377 <P>, 841, 849 passing an object as an argument, PI,377 p,676,688 683 pic prefix, 410 packet, 810, 823, 834, 839 passing a variable number of Picture, 257, 399, 495, 517, pad a fixed-length string, 317 arguments, 285 521,524 page-composition packages, 12 password,818 Picture and String, 399 Page Down key, 775 PasswordChar, 141 pictureBox, 384, 429, 463, page layout software, 304 PasswordChar TextBox 496,524 page of records, 775 property, 413 pictureBox control, 30, 399, Page Up key, 775 Password intrinsic HTML con- 410,462
Paint, 188,459,730 trol, 846-847 pictureBox control (data
Paint event, 715-716, 720 paste, 33 aware),772
PaintPicture, 492 Path property, 579-580, 592, pictureBox refreshed, 386
Paintpicture method, 399, 594-595,597 PictureBox's BackColor, 407 pattern matching, 780 498
paired tag notation, 841 pattern matching character #, 309 Picture property, 190,202,
Palette property, 727 pattern matching character?, 309 472,492
Palette tab, 36 Pattern property, 580 pie chart, 407
palindrome, 367 pattern string, 781 pig Latin, 313, 315
Paradox, 768 \pau=number\, 870 pig Latin program, 314
ParamArray, 285-286 Pause, 870-871 pink,390
parameter, 695, 697 Pause method, 885, 888 \Pit=number\,870
parameter list, 182, 648 pause speech, 870 pitch of character's voice, 870
1000
pixel, 372, 866
pixel,429
pixel coordinates, 869
Pixels scale, 373
platform, 7
Play, 867, 870-871
Play button, 882
Play button on the MCI Con-trol,876
PlayCount property, 888
Play method, 879
plug in, 710
plus sign (+), 305
plus sign (+) to the left of Me, 568
point, 208, 379
pointing and clicking with the mouse, 51
point-of-sale systems, 14,616
Points scale, 373
poker, 364
poking with the mouse, 867
Polar axis, 381
polar coordinates, 381
Pole, 381
poll analysis program, 254
poll data, 253
polylines, 382
polymorphic behavior, 672
polymorphic processing of shapes, 684
polymorphic programming, 670, 673
polymorphism, 647-648, 666-667,670-673,677
pop, 914
Pop, 912, 914
pop operation, 648-
popped, 648
popped off, 912
popping, 648
popping the dish off the stack, 648
pop-up menu, 415, 437-438
Pop value, 914
port, 402
Portability Tips, 10
port 5000, 835
port number, 823, 828, 834, 836
port number client is using to communicate, 828
port number on a server, 825
PositionChange event, 889
position number, 248-249
position number zero, 248
Position property, 87l
PostorderHelper, 922-923
PostorderTraversal,922-923
post-order traversals, 918
pound sign, #, 342
Powerbuilder, 8
Powersoft Corporation, 8
prebuilt components, 16
precedence, 66, 156
precedence of operators, 158
precedence of arithmetic opera-tors, 66
pre-defined formats, 327
predefined animation, 867
predefined constants, 842
predefined icons, 440
pre-defined numeric formats, 327
predicate function, 907
predicate method, 656
prefixes for objects, 560
prefixing module-level variables, 146
prefix vb, 139
prepackaged components, 29
prerecorded audio and video, 880
Prentice Hall, 794
preorder, 918
PreorderHelper, 922-923
preorderTraversal,922-923
Preserve, 280
. ___ preserve with ReDim, 279, 283
press a button, 51, 105, 178
press a key, 51
pressing a key, 509
pressing a mouse button, 13, 509
prev,870-871
previous record, 776, 801
previous track, 874
primary key, 770, 778
primary key field, 777
primary memory, 4
prime, 245
primitive data type, 652
principal, 135
INDEX
print a line of text on the form, 52 print an array, 251
Print button, 228
PrintForm,401-402
printing a binary tree, 924
printing dates in various formats, 366
printing projects, 33
printing trees, 942
Print method, 56, 374, 401
Print #, 561
print on paper, 4
print on the form, 54
Print #, 637
printed output is scaled, 40 I
printer driver, 400
printer driver name, 400, 402
Printer object, 400-402
Printer properties, 400-401
Private, 180-181, 227, 652-653-655,657,665,676, 688,899,906-907,912, 921-922
private address space, 746, 747, 750
Private data, 654--656
Private IEmployee2, 690
Private instance variable, 652, 655-657,665,676
Private Integer instance variable, 652
Private member, 654
Pri va te members of a class, 653
Private method, 650, 657
Private scope, 198
Private String instance, 689
Private Sub, 54
Private superclass, 688
Private variable or procedure, 227
procedural program, 667
procedural programmer, 646, 653
procedural programming lan-guage, 646-647, 653
procedure, 12, 178
Procedure Attributes ... , 728
--
INDEX 1001
Procedure Attributes dialog, Project Properties dialog, 730 Property Let Intere-
729 Project Properties dialog's stRate, 655
Procedure box, 55, 676 Compile tab, 498 Property Let Month, 665
procedure call, 179,901,912 Project Properties dialog's Property Let procedure, 656
Procedure Col!lboBox, 697, Component tab, 753 property listing, 102, 108 722 Project Properties from property Max, 488
procedure definition header, 54 Project menu, 730 property Min, 488 procedure names, 198 Project1 Properties command Property method, 689 Procedure Separator, 55 Project Type, 753 property MousePointer, 509 process, 746 Project Type Col!lboBox, 730 PropertyName, 727 processing a queue, 915 project types, 26 property page, 743 processing phase, 104, 108 Project window, 28-29, 34, 41, Property Page, 741-742 processing resource, 669 460 Property Page Created dia-processing unit, 3 prompt, 109 log, 745 Professional Edition of Visual Properties ... , 728 Property Page Name dialog,
Basic, 9-10, 822 properties, 28, 71,136,648-649, 743-744 program control, 90 655 property pages, 415, 741 program maintenance, 11,670 properties for a form or control, Property Pages dialog, 415-programmatic interface, 720 31 417,419,490 programmer, 666,669,672 Properties - Form1 window, Property Pages dialog's programmer -defined procedure, 27-28 RecordSource tab, 775
185,693 properties list, 10 1 Property Pages from View programmer-defmed type, 647 properties related to drawing menu, 741
programming language, 649 graphics, 382 property page tab, 743-744
programming tips, 17 Properties window, 31, 33-34, Property Page Wizard, 746-
program reliability, 13 39,53-54,415,434,467, 747
project, 17,26,29, 694 714,729,741,746 Property Page Wizard - Add
Project, 928 property, 661, 694 Properties dialog, 744-
Project Description, 730 Property, 180, 665 745
Project Explorer, 28, 33, 467 property Appearance, 496 Property Page Wizard - Fin-
Project explorer window, 227 property Arrows, 495 ished dialog, 744-745
Project Explorer window, 649, PropertyBag object, 723 Property Page Wizard -
716, 724 PropertyChanged method, Introduction dialog, 742
project file, 28 724 Property Page Wizard -
Project icons, 33 Property Commission, 683 Select the Property
projection, 770-771 Property FirstName, 677, Page dialog, 743-744
Project/Library Col!lboBox, 683 Property Page Wizard Sum-
694 Property Get, 655, 657, 660, mary Report dialog, 745-
Project menu, 33, 466, 498,649, 665,899,907,910,921 746
887 Property Get Intere- Property procedure, 653, 656,
Project menu's Add MOl stRate, 655 665,676
Form, 460 Property Get procedure, 656- Property Quantity, 683
Project Name, 730 657 Property Salary, 683
Project Name TextBox, 467 Property Hours, 683 Property Set, 655
Project1 - Form1 (Form) win- property Increment, 488 Property Set procedure, 656
dow, 27 Property LastName, 677, property settings, 52
Project - Project1 window, 27 683 property sheet, 774, 788
Project Properties dialog, Property Let, 655, 657, 660, Property Wage, 683
466-467,469,472,498- 665,899,910,921 Property wagePerPiece,
499 Property Let Day, 665 683
1002
Property WeeklySalary, 677
property Zoom, 885
protocol, 811
Providertab,774 Proxy property of Internet
Transfer control, 822
proxy server, 822
PSet,382-383,401,431
Pset method, 374, 379-380
PSet to draw shapes, 380
pseudocode,90-91, 93, 96, 104-105,110
pseudocode algorithm, 101, 106
pseudocode representation of the top, 111
pseudo-random numbers, 206
PUblic, 653-656, 670, 695
Public array, 250 PUblic Const instance vari-
able, 653 Public data, 650
public interface, 684, 912
Public interface, 648, 670-671, 673
Public interface of a class, 650
Public keyword, 180,227 Public method, 649-650, 652,
673,676-677,683 Public procedure defined in a
code module, 228
Public property, 730
Public scope, 198
Public services, 650
Publishers table from Bib-lio .mdb, 777
punched cards, 5
push, 648, 914
Push, 912, 914
pushing, 648 pushing the dish onto the stack,
648 push operation, 648
Push value, 914
put (send a file to the server), 821
Put statement, 621, 623-624, 629
pwd (display the current directory name), 821
pyramid, 407
Q QBColor, 393
QBColor argument values, 393
queries, 768
query, 773 QueryInterface,710
query language, 769
Query menu, 33
query method, 654
query string, 793
query the Biblio .mdb data-base, 786
QueryUnload, 472, 717
question mark, ?, 780-781
question mark icon, 440
question mark (?) in the pattern string, 781
queue, 16,897-898,900,912, 915,917
Quicksort, 299 Quick Watch ... , 563, 569
Quick Watch window, 570
quotation marks (single or dou-ble),304
Quit, 713
quit (terminate current connection),821
R RAD (Rapid ApplicationDevel-
opment), 9, 29, 647, 710
radian, 377, 381
radio buttons, 30, 180,511
Radio intrinsic HTML control, 846-847
radius, 376, 378
RAD language, 647
raise an error, 542, 545, 549-550
raise an event, 695, 723
RaiseAnEvent, 697,723
RaiseEvent, 695
raised errors, 541 544
Raise method, 545, 555
raising an error, 650
random, 356
INDEX
random access, 621
Random Access, 626
random-access file, 13-14, 579, 616-620,627,636
random access file processing, 767
random colors, 391-392
randomizing, 206
random number, 201
random number generation, 203
random number generation to cre-ate sentences, 365
Randomize, 208, 357-358
Randomize statement, 206-207
range checking, 650, 655
range vbKeyA - vbKeyz, 527
range vbKeyFl - vbKeYF16, 527
range vbKeyNwllpadO -vbNumpad9, 527
range vbKeyO - vbKey9,527
Rapid Applications Development (RAD), 9,29, 647, 710
RasterOp, 399,407
reaction timelreaction precision tester, 894
read, 673
Read, 617
readability, 75, 112, 654
ReadAll method, 600
read data sequentially from a file, 603
reading data sequentially from a random-access file, 628
read from a socket, 810
reading only, 603
Read method, 600
ReadLine method, 600, 606
read-only mode, 617
read-only property, 656
ReadOnly property, 580
ReadProperties, 716, 723, 728, 738
ReadPropertY,723
read randomly from a randomaccess file, 630
Read Write, 617, 623
ReadyStateChange event, 889
INDEX
RealAudio Activex control, 880-882
RealAudiocontrolSource property
Real Networks, 880 Real Networks Web site http:/
/www.real.com. 880 real number, 106 receive an array through a call,
259 "receiving" section of the com
puter,4 Recent tab of New Project dia
log, 26
record,584,599,616,619,769-770
Record, 870-872 record key, 584, 602, 616
Recordset, 772-773, 783, 788-789,793,798,800-801
Recordset object, 770, 797
record size, 616 Record Source, 788 RecordSource property, 776,
786-788, 792, 794, 796
record structure, 599 rectangle, 12, 94--95, 375-376,
388-389 rectangle symbol, 91, 98, 134,
160 rectangular coordinates, 381
recursion, 215 recursion step, 215, 217 recursion vs. iteration, 220 recursive approach chosen in
preference to iterative approach,221
recursive call, 215, 219, 221 recursive factorial procedure, 215
recursive LinearSearch, 301 recursively print a list backwards,
940 recursively search a list, 940 recursive procedure, 214
recursive solution, 221 recursive step, 219, 300 recv (same as get), 821
red,376,379,391,393,514 red circle overlap, 566
ReDim, 278-279, 283
ReDim Preserve, 279, 283
redimension an array, 280
redimrnable arrays, 278
red intensity, 390
red rectangle, 376
redundancy, 768
redundant parentheses, 69, 156
reference, 660-661, 673, 677, 694,697
References ... , 928
References dialog, 585, 712, 748-749,754
References ... from the Project menu, 712
references to objects, 661, 667
references to objects of other classes as members, 661
reference to the current fo=, 567
Referential Integrity, 779, 788
refinement, 104
refinement process, 104
refresh, 672
Refresh method, 580, 592, 794
Refresh method of Web-Browser control, 815
Regional Settings TextBox, 342
register a control, 730
registration fee, 850
reinventing the wheel, 179, 647
relational database, 15,768,770
relational model, 769
relational operator, 149-150, 156
relational operators with Strings, 306
relationship, 667
relative coordinates, 382
Release, 710
releasing a key, 509
releasing a mouse button, 13, 509
releasing the mouse button on a control, 524
reliability, 13, 823
Rem, 56
remainder after Integer division,65
remote automation, 711, 713
1003
Remote Automation Con-nection Manager, 713
remote component, 713
RemoteHost, 837-838
RemoteHostIP, 834
remote host IP address, 826
RemoteHost property, 825, 831
remote machine, 711
RemotePort, 825, 831, 834, 836-838
Removable, 599
Remove, 924, 926-927, 932
RemoveAll, 932
Remove all key/value pairs, 932
remove from a project, 227
RemoveFrOmBack, 907, 910-912
Remove from Collection, 924
RemoveFromFront, 907-910
Remove from the Project menu, 227
removeItem, 908-910
RemoveItem comboBox method,420
RemoveItem ListBox method,424
remove leading spaces at left of a string, 317
removing spaces, 317
rename (change a file name), 821
Rename ... button, 743-744
repaint, 387
repeatability, 203
repeating code, 180
repetition, 130, 160, 163
repetition control structures, 130
repetition structure, 11, 91-92, 105,220
repetition terminates, 98, 132
replace a portion of a string with another string, 312
Replace function, 319
replacing substrings in a String, 319
request for connection from a client, 824
Require Variable Declaration,73
) ...
1004
Require Variable Declaration CheckBox, 73
reraise, 555
reserved word, 57
ResetBookmark,911
Reset intrinsic HTML control, 846-847
resizable.arrays, 900
Resize,715-7l6, 720, 728, 738
Resize event handler, 723
resize the application window, 879
resize window, 509
re sizing the form, 35
resolution on a screen, 373
respond to events, 52
ResponseCode property of Internet Transfer control, 822
ResponseInfo property of Internet Transfer control, 822
Resume flow of control, 547
Resume method, 885
Resume statement, 547-548, 550,561-562
Resume Next statement, 547, 549,555
rethrow an error, 555-556
RethrowTheError,555
Retry button, 439
return, 179
return a value, 186
Return key, 34, 527, 560
return type, 187
return value, 186
Return version of the anima-tion,867--
reusable components, 647,713
reusable data structures, 898
reusable module, 476
reusability, 164,469
reuse, 14,29,647,666,709
reuse binary code, 709
reverse a string, 319
reverse the mteilning of acondi" tion, 157
reversing a bit, 583
reversing strings with function StrReverse, 320
RGB, 390-391
ROB color, 498
ROB value (RedlOreenIBlue), 390
Richie, D., 8
rich text, 480
RichTextBox control, 412, 480--484
RichTextBox control (data aware), 772
rich text editor, 481
RichTextBox Find con-stants,484
rich text format (RTF), 480
rich text formatted text, 481
Right, 921
right-arrow key, 775
right button, 515
right child, 918
right-clicking the form, 434
right-clicking the ImageList control, 489
right-click the mouse, 437
Right$ function, 312-315, 365
Right Justify,38
RightMargin property, 484
right margin value, 484
right mouse button, 515, 741, 798
right subtree, 918, 922-923
. rle image file extension, 399
RLE images, 399
rmdir (remove a directory), 821
• md, 621
Rnd(),385
Rnd function, 201, 203
Robby the Robot, 862, 864, 867
__ . roll a six-sided die, 201
Rollback,801
rollback, 801
rolling a six-sided die, 201
rolling dice, 293
rolling 12 six-sided dice, 257
root directory, 818
root folder, 595, 597
RootFolder property, 597
root node, 918, 922
root node level, 924
round, 110, 182,226
rounded rectangles, 388-389
rounded squares, 388-389
Round function, 226
row, 271, 769
INDEX
RowSource property, 789, 792, 796
, rtfBo.th constant, 484
rtfHorizontal constant, 484
rtfMatchCase constant, 484
rtfNoHighlight constant, 484
rtfNone constant, 483
rtf prefix, 412, 480
rtfRTF constant, 484
rtfTextBox, 484
rtfVertical constant, 484
rtfWholeword constant, 484
RTrim$ function, 317-318
Rule of Entity Integrity, 778, 788
rules of operator precedence, 66, 68
Rule of Referential Integrity, 779, 788
rules for forming properly structured programs, 160
rules for forming structured pro-grams, 160
Run icons, 33
run-length encoding, 399
Run method, 888
Run menu, 33, 40, 558
Run menu item Break, 558
run mode, 40, 57, 557-558
run time, 31, 98, 694, 900
run-time engine, 498
run-time error, 62-63, 74, 97, 155,164,183,197,250, 661,677
run-time instance, 716
run-time logic error, 73
run-time properties, 426, 714
Run To Cursor, 563, 565-566
s same level of precedence, 68
saturation, 390
Save, 870-871
INDEX 1005 , Save File As •.. dialog, 40 ScrollPixelsx, 884-885 SELECT * FROM TableName SaveFile, 484 ScrollPixelsY, 884 WHERE criteria, 780 Save Project As... dialog, 40- Scroll scrollbar event proce- Select Case, 92, 147,203,
41 dure,429 214,257 SavePicture, 399 Scroll Slider event proce- Select Case logic, 669-670 Save Proj ect tool bar icon, 40 dure, 431 Select Case-based system, scale, 17, 372 scroll style, 884 670
ScaleLeft property, 374 ScrollStyleX, 884 Select Case multiple selection
Scale method, 374 ScrollStyleY, 884 structure, 130, 140, 141, 163
ScaleHeight property, 374, SDI application, 460, 469 Select Case statement, 669-
723, 725 Search button, 695 670
ScaleMode property, 374,725 Search ComboBox, 695 Select Case structure, 146,
ScaleTop property, 374 search for substring, 315 159,669
ScaleUnits property, 727 searching arrays, 266 selected, 29
ScaleWidth property, 374, searching strings with InStr and Selected property, 494
723, 725 InStrRev, 316 Select intrinsic HTMLcontrol,
ScaleX method, 374 search key, 266 846-847
ScaleY method, 374 Search Results Frame, 695 SelectedItem property, 789
scaling, 201, 203 search string, 313, 315-316 Select or enter a database
scaling factor, 201, 208 search tabular data, 771 name TextBox, 775
Scanner, 871 search the World Wide Web, 15 <SELECT> tag, 849
"Scientific" named secondary storage unit, 4 selecting, 27
numeric format, 329 second-degree polynomial, 68 selecting properties and events,
scientific notation, 329, 333 Second function, 346-347 734
sckClosed, 824 second refinement, 104-105, selection, 159, 163
scope, 197,560 112-113 selection criteria, 780
scope of an identifier, 198 seconds elapsed since midnight, SelectionEnd property, 888
scoping example, 199 208,347 Selection object, 713
scoping rules, 227 sector, 376-378 selection sort, 299
screen, 3-5, 11 security, 7l1, 768-769 SelectionStart property,
screen manager, 672 security keypad program, 142, 888
Screen object, 219 276 selection structure, 11, 91-92,
</SCRIPT>, 845 seed,206,208 220
scripting, 811 Seek statement, 637, 870-87l Select picture dialog, 490
scripting language, 845, 850 SelBold property, 484 SELECT queries, 780
<SCRIPT LANGUAGE= SelCount ListBox property, SELECT query keyword, 779
"VBScript">, 842 424
self-documenting, 62, 618
script level, 842 SELECT,796
self-referential class, 899
<SCRIPT> tag, 844 Select Access Database dia-
self-review exercises and
scroll, 423, 884 log, 774, 797
answers, 17
scroll arrows, 495 SELECT component, 848~850
SelItalic property, 484 SELECT * FROM Tablel INNER
scrollbar, 484, 488,495,717 JOIN Table2 ON Table.field SelLength property, 603
scrollbar controls, 427 = Table2.field, 782 SelStart property, 603
ScrollBars property, 483, 787 SELECT * FROM TableName SelUnderline property, 484
Scrollbars TextBox prop- ORDER BY field ASC, 781 send (same as put), 821 erty,413 SELECT * FROM TableName SendComplete event of Win-
scroll box ORDER BYfieldDESC, 781 Sock control, 840 ScrollDelay, 884-885 SELECT * FROM TableName, SendData method, 824-825, Scroll event, 431 780 829,836,838
1006
SendProgress event of win-Sock control, 840
senses, 16
sentence, 12
sentinel-controlled loop, 109, 149-150
sentinel-controlled repetition, 103, 105-106, 108-109
sentinel value, 103-105, 109, 149-150
separator bars, 436-437
sequence, 159, 163, 164
sequence of characters, 304
Sequencer, 871
sequence structure 11 91-92 104 " ,
sequential access, 603
sequential-access files, 579, 602, 608, 616
sequential code, 670
sequential execution, 91
sequential file, 13-14,584,599
sequential file access, 637
sequential file processing, 767
SerialNwnber property, 597, 599
Serif, 38
server, 5, 822-824, 826, 829,915
server and client program outputs, 833
server application, 834
server closes a connection, 832
server port number, 831
server waiting for connection, 831
set, 655-657, 665
Set, 661, 665, 693, 900
set a point's color, 374
SetDate, 665
SetFocus comhoBox methods,420
SetFocus ListBox method, 424
SetFocus method, 495, 580
SetFe>cus scrollbar method, 429
SetFocus Slider method, 431
SetFocus TextBox method 413 '
Set keyword, 661
set method, 655
Set Next Statement, 563, 567
SetTime, 650
SetTime method, 652
set the trap, 562
Sgn function, 226
Shakespeare, William, 367
Shape control, 30-31, 387-388, 390,410
Shape control icon, 387
shape of the mouse pointer, 13, 219,416,509
Shape property, 388
Shape property constants, 389
Shape control property Fill-Style, 390
Shape control shapes, 390
Shapes, 688
Shareable property, 871-872, 875
shared device, 871
sharing, 768
shell, 688
Shift, 518-519
shift adjustment, 201, 208
Shift bit field, 520
Shift key, 425, 517-518, 520, 526-529
Shift parameter, 529
Shift variable, 517-518
shifting, 203
Shortcut ComhoBox, 434
shortcut keys, 434-435, 437
"Short Date", 350
short format date representation, 326
short name format, 594
ShortName property, 592, 594-595,597
Short Path property, 595, 597
"Short Time", 351
Show, 472, 715
Show, 570
ShoWColor, 398
ShoWControls property, 888
ShowDisplay property, 888
Show event, 868
Show event procedure, 726
INDEX
ShowGrabHandles propert 727 y,
ShowHatching property, 727
Show method, 479
Show Next Statement, 563 567 '
ShowOpen method, 622
ShowPositionControls 887 '
ShowSave method, 622
ShowSelectioncontrols 887 '
ShowTracker property, 888
shp prefix for Shape controls 390,410 '
shrink-wrapped software, 669
shuffled deck, 356
shuffling algorithm, 357
siblings, 918
sight, 16
silicon chip, 3
simple client, 825
simple conditions, 156
simple stack program, 913
simplest case, 215
simplest flowchart, 160-161
simple Tep client, 829
simple Tep server, 826, 828
Simpletron Machine Language (SML),450
Simpletron Simulator, 507, 858, 894
simple UDP server, 834
simplicity, 164
simulation, 201
simulator, 452
Sin function, 226
sine, 226
Single, 63, 106, 135, 140, 326, 898
single-clicking, 26, 509
single-clicking with the left mouse button, 27
Single data type, 165
single document interface (SDI) application, 459
single entry point, 159
single-entry/single-exit control structures, 93, 159
INDEX
single-entry /single-exit repetition structures, 160
single-entry/single-exit sequence and selection structure, 159
Single (exclamation point, !), 165
single exit point, 159 single form, 469 single inheritance, 667
single-line comment, 56
single-line If/Then, 75 single-precision floating-point
numbers, 165 single-quote character, 794 single-selection I f/Then struc
ture,93 single-selection structure, 92,
140, 159 single-subscripted array, 898 Single type-declaration charac-
ter, 106 sign (+ or -), 323 signal value, 103
sinking sort, 263 site, 715 SiteBuilder Network Workshop,
850 SiteSelector,850 six-sided die simulation, 205 SIZE, 849 size (get the size of a file), 821 Size, 801 Size event, 868 Size method, 599 sizing handle, 35, 37, 716, 720,
723 Skip method, 600 SkipLine method, 600 sldBoth TickStyle property
value, 433 sldBottomRight Tick
Style property value, 433 sldNoTicksTickStyle
property value, 433 sld prefix, 412, 433 sldTopLeft TickStyle
property value, 433 Slider ActiveX control, 431 Slider control, 412, 433 Slider Max property, 432
Slider Min property, 432 Slider properties, 431 SmallChange property, 432,
496,498,733 SmallChange scrollbar prop
erty,429 SmallChange Slider prop
erty,431 small circle symbols, 93, 95, 98,
159 smallest number, 183 "sneakernet", 5 socket, 810 socket-based communications,
810 software, 2-3 software component, 14 software complexity, 666 software demand, 14 software development, 8, 669 software engineering, 152, 656 Software Engineering Observa-
tions, 10 software reusability, 164, 179-
180,469,647,666,669 software reuse, 660-661, 669 Sorted ComboBox property,
420 Sorted ListBox property,
424,426 sorted order, 630 Sorted property, 425 sorting, 602, 781 sorting algorithm, 630 sorting data, 263 sorting large arrays, 266 SortingOrder, 782 sound, 861-862 Sound, 870-871 sound board, 870 source code, 653r, 669 Source of Connection
Frame, 774 Source property,544, 546 Source property of the Real-
Audio control, 882 source string, 312 Space bar, 425, 527 Space$, 147,251,277,317-318 spacing convention, 94
space-time trade-off, 630
Speak, 867-868
1007
speaking to your computer, 4
Speak method, 869
SP ARC Ultra from Sun Micro-systems, 861
\Spd=number\, 870
special characters, 304
Special Section: Advanced String Manipulation Exercises, 367
Special Section: Building Your Own Computer, 449
Special Section: Challenging String Manipulation projects, 370
special symbols, 304, 583
speech, 16
speech engine, 870 speech output tag, 869
speech recognition, 862 speed property, 869
spelling checker, 370,747
spinner control, 488
spiral, 391-392 Splash Screen, 477, 479
Split function, 355-356, 365
splitting an identifier or a key-word, 76
spoken by the animated character, 869
spoken commands, 16
spooling,915 spreadsheet, 712, 714
SQL (Structured Query Lan-guage), 768-769, 776, 779
SQL keyword DISTINCT, 793
SQL keywords, 779
SQL queries, 780, 788, 797 SQL Server, 768
SQL statements, 786
Sqr function, 226
square, 389 square problem, 113
square root, 226, 649
stable states, 583 stack, 16,648,656,897-898,900,
912,917
stacked building blocks, 161, 163
1008 INDEX
stack class, 912 Static storage class, 197-198 String data type, 165
stacking, 93-95, 164 Static storage class variables, String (dollar sign, $), 165
stacking rule, 161 198 string formatting, 327
Standalone, 753 Static variable, 198 String$ function, 317-318
stand-alone ActiveX EXE, 752, StatusUpdate event, 871 string literal, 304 758 Step, 870, 872 string manipulation, 304
stand-alone application, 753 Step Into, 558, 563-565 String Manipulation Exercises, stand-alone controls, 730 Step keyword, 132-133, 382 367
stand-alone EXE, 751 Step omitted, 139 String Manipulation Projects, 370
stand-alone executable, 756 Step Out, 563, 565-566 String moutputString,
"stand-alone" units, 5 Step Over, 563-565 922
standard code module, 618 step wise refinement, 3 string of characters, 12
standard controls, 409 StillExecuting property of string of zero length, 313, 315
Standard EXE, 26-27, 32-33, Internet Transfer String "Point", 676
649,711,748-750,753- control, 822 String type-declaration charac-
755, 758 Stock Portfolio Evaluation, 858 ter, 109
Standard EXE application, 747 Stonebraker,771 string value, 304
Standard EXE project, 731, 754 Stop, 870-871 string variable, 305
Standard EXE's GUI, 718 StopAll method, 869 Stroustrup, B., 8
standard executable, 26 stop an animation, 869 StrReverse function, 319-320
standardized pieces, 180 stop method, 869 structured flowchart, 161
standardized reusable component, stop method of Web Browser structured programming, 2-3, 8-
669 control,815 9,89,91,152,164
standard module, 226, 649, 752, Stop statement, 558 structured programming sum-
756 storage alignment, 619 mary, 159
"Standard" named numeric storage class, 197 Structured Query Language
format, 328 storage class specifier, 197 (SQL), 768-769, 776, 779
standard-time format, 650, 652 stored procedure, 773 study aids, 17
standard tool bar, 33 story teller, 893 Style ComboBox properties,
420 Start button, 40--41 straight -line form, 65 Style ListBoxproperty, 424 starting index, 485 strategies for debugging, 560 Style property, 190,425 Start Mode, 753 StrComp function, 306-307 subclass, 666-670, 672, 677, StartMode property, 752 Str$ function, 322-323 688-689 StartNode property, 910 streaming audio and video, 880 subclass is derived from the Start Up ComboBox, 730 streaming technologies, 834 superclass, 666 startup form, 469 stream of bytes, 599 subclass-object-is-a-superclass-start-up object, 752 ----string, 63, 932 object relationship, 667 StartUp Object, 466-467, 469, String, 109, 138, 186,304- subfolder, 597
471-472,474-475,753 305,327,650,659,665, Sub Main, 753 Startup Object TextBox 676,683-684,695,898, submenu, 434 StartValue, 781 922,925-926 submi t intrinsic HTML control, StateChange event, 822, 889 String array, 353-354 846,848 statement, 56 String "Circle", 676 Submit User-defined Query, State property of Win Sock string comparison, 309 786
control, 839 string concatenation, 305-306, Sub procedure, 11, 164, 180, Static, 249 312 182-183,214-215,653
, I Static array, 250 string concatenation operator, .. , Sub procedure body, 181
Static local variable, 198-199 75 Sub procedure definition, 181
Static keyword, 181 string constant, 304 Sub procedure header, 181
INDEX
substring,311-312,356
substring in a string, 315
subtraction, 65, 67, 649
subtree, 918
Sun Microsystems, 8, 861
supportsMnemonics prop-erty, 727
superclass, 666-671, 673, 688-689
superclass object, 670
supercomputer, 3
supe=arket simulation, 939 survey, 253
suspending at a breakpoint, 567
swap, 266
sweep, 377
Switch,97
switch returns Null, 97
synchronous errors, 538
synchronous transfers, 816
syntax, 665
syntax checker, 560
syntax color highlighting, 57-58
syntax error, 57,76,98,155,653-654,661,671,695,697
system clock, 391
system date, 341
system date and time, 147
System property, 580
systems implementation lan-guage,8
system time, 346
T tab, 75, 94, 147
Tab,637
tabbed dialog, 742
Tab key, 53, 418, 527, 542
TabIndex property, 52-53, 488
tab order, 416 TabStop comboBox property,
420
TabStop ListBox property, 424
TabStop scrollbar propelty, 429
TabStop SI ider property, 431
Tab Width TextBox, 73
table, 769, 773
table element, 271
table fo=ed by projection, 770
Table or Stored Procedure Name, 788
table of values, 271
tabular data, 771
tabular fo=at, 252
tail, 898
tail of a queue, 915
Tan function, 226
tangent, 226
target, 524
task,4
TCP (Transmission Control Pro-tocol), 810
TCP client, 829
tcpClient • Close, 831-832
tcpClient.GetData, 831-832
TCP protocol, 826
TCP server, 826, 828
TCPServer. Close, 828-829
tcpServer.Listen, 829
tcpServer port number, 823
tcpServer.SendData, 829
telephone call, 810
telephone conversation, 823
telephone handset, 810
telephone keypad, 614
telephone number generator, 613
telephone system, 834
television, 16
template form module, 459
template fo=s, 475-476, 479
temporary fIle, 592
terminal,5
Terminate, 649, 665
terminate a print job, 401
terminate program execution, 57
terminate recursion, 215
terminate repetition, 99
terminating a loop, 103, 105
terminating condition, 216
termination phase, 104, 109
termination test, 220
terminates, 911
1009
Test Connection button, 775, 797
testing, 670
Testing and Debugging Tips,10
tetrahedron, 407
text, 480
Text, 308
TextAlign property, 727
text analysis, 367
TextArea intrinsic HTML control, 846, 848
text-based language, 8
TextBox, 13,60-61,74, 111, 412,419,421,480,659, 885,914,917-918,930,932
TextBox control, 30, 61, 410, 414, 772
TextBox Name, 180-181
TextBox'S BackColor prop-erty, 531
Text ComboBox property, 420
text editor, 304
text file, 621, 633
text flasher, 893
TextHeight, 375
Text intrinsic HTML control, 846,848
Text ListBox property, 424
Text MaskedEdi t control property, 416
TextPosition property, 433
text processing software, 304
Text property, 61,792,796
text searching, 16
TextStream, 602
TextStream properties and methods, 599
TextStream type, 586, 600
Text TextBox property, 413
Texture property, 713
TextWidth method, 375
tightest scope, 560
tightly packed binary tree, 924
tightly packed tree, 924
theater-in-the-round,861
The Complete Visual Basic 6 Training Course, 16
the form, 27
theta, 381
1010
"think out" a program, 90, 93 </TITLE>, 841 thousands separators, 336, 339 title bar, 27, 34--35, 74, 40, 46 3D, 16, 496 Title Author table from 3D cartoon characters, 16 Biblio.mdb,777
3D look, 495 Ti tles table from Bib-three-button mouse, 515 lio.mdb,778
three-dimensional, high-resolu- tmr prefix for Timers, 393,410 tion, color graphics, 861 toggle, 29, 409, 435
three-dimensional television, 861 Toggle Breakpoint command three-dimensional tic-tac-toe, 707 (F9), 563, 566-567 three-element array, 688 toggle choice, 30 throughput, 5 Toggle Folders, 29 throw point, 555 Toggle Folders button, 28-29 TickFrequency Slider token, 356
property, 431 tokenization function Spl it, tick mark, 432 355 TickStyle,432 To keyword, 132-133, 146,257 TickStyle Slider property, tone of voice, 869
431 tool bar, 27-28, 33 Tic-Tac-Toe, 707, 858 tool bar icons, 27, 33 tile child windows horizontally, tool tip, 413
468 tool-tip Animation, 879 tile child windows vertically, 468 ToolTipText ComboBox tiled horizontally and vertically, property, 420
468 Tile Horizontal, 467-468 Tool TipText ListBox prop-
erty,424 Tile Vertical, 467-468 ToolTipText property, 413 time, 147 Tool TipText TextBox prop-Time, 304 erty, 413 TimeCast site http://www. - ToolBars menu, 562
timecast.com/sta-tions/index.html, toolbox, 28-29, 33, 718 880 ToolboxBitmap, 730
Time function, 208, 346 toolbox controls, 29 time functions, 340 toolbox icon, 724, 730 TimeFormat property, 871 toolbox icon enabled, 719 Timer,725 toolbox window, 27, 30
Timer contr61;-3U.c.3 1,392, 394= - --Tools icon, 33 395,410,462,485,490,728 Tools menu, 33, 180, 185,434,
Timer event, 728 728 Timer event procedure, 393 tool tips, 29-30 Timer function, 346-347, 479 top, 104, Ill, 648, 898 Timer interval, 725 Top, 727 TimeSerial function, 346, top-down stepwise refinement, 3,
348,486 104,106,110-111 Timer's Interval property, top-level menu, 435-436
391 top of the screen, 869 timesharing,5 Top property, 869 TimeValue function, 346, 348 Tortoise and the Hare simulation, <TITLE>, 841 457
INDEX
ToStandardTime, 650, 652-653
Tostring, 665, 673, 688-689, 691
TOString method, 677, 683-684
total,106 TotalSize property, 597 TOUniversalTime, 650, 652-
653 Towers of Hanoi, 243, 535 trace debugging, 560-561 trace program control, 562 tracing, 560 track,871 Track property, 871, 874 TrackLength property, 871,
874 TrackPosition property, 871 Tracks property, 871-872 traffic on the Internet, 882 trailing spaces, 317 transaction processing, 767, 801 transaction processing program,
633 transaction processing systems,
14,616 transfer of control, 91 translation, 6 translation steps, 6 Transmission Control Protocol
(TCP),823 transparent, 384 Transparent, 38 Transparent value traverse, 923 trap, 541,561 trap an error, 555 trap fatal run-time errors, 562 Tree, 922 tree, 16,898,900,917 tree nodes, 917 triggering an event, 695 trigonometric arctangent, 225 trigonometric cosine, 225 trigonometric sine, 226 trigonometric tangent, 226 trigonometry,380 Trim$ function, 317-318
INDEX
True, 69,92-94, 153,324,887-888,907,911
true color images, 398
"True/False" named numeric format, 329
True/False values, 165
True keyword
truncate, 182, 602-603
truth table, 156, 158
truth table for operator And, 156
truth table for operator Not, 158
truth table for operator Or, 157
turn drawing off, 383
Turtle Graphics, 300
twip,372
Twips scale, 373
two- and three-dimensional graphics, 16
two-dimensional array representation of a deck of cards, 357
two-dimensional arrays, 272
two-dimensional graphics, 861
type, 652, 669
TYPE, 846
Type, 618, 801
type conversion functions, 324-325
type Currency, 140
type-declaration character, 62-63,153,165,182,187,898
type-declaration character for a String, 304
type Double, 135
Type Fields, 669
type libraries, 694
type Long, 145
Type method, 599
type mismatch error, 306 543, 546-548,550,555
TypeName, 898-899
TypeOf keyword
Type property, 595
typesetting systems, 304
types, 649
types of comparisons, 309
type specifier, 652
Type statement, 898
txt prefix, 410
u UBound, 251, 254, 273, 276
uCase$ function, 320
UDP (User Datagram Protocol), 810-811,823,834
udpClient.Close,837
updClient.GetData,837
updClient.SendData,838
UDP packets, 834
UDP server, 834
udpServer.Bind,835
udpServer.close,836
udpServer.GetData,836
udpServer.SendData,836
UIDead property, 727
unary operator, 65, 157
unchecked, 30
underscore L) character, 54, 676
undo, 33
uneditable text, 30
Universal Resource Locator, 811
UNIX, 6, 8
Unknown, 599
Unload, 467, 717
UnloadMode variable, 473
unmapped member, 735
unsite,716
unstructured flowchart, 162-163
up-arrow cursor, 510
up-arrow key, 775
Update Interval property, 871,875
Update Record tab, 638
UpDown control, 412, 485-488
upd prefix, 412, 486
updSpeed_Change,488
upper bound, 250, 257
uppercase letters, 417, 649, 671
upper-left corner, 373, 399
upper-left point on the screen, 372
URL (Uniform Resource Locator or Universal Resource Locator), 811, 814-815
Use Connection String option, 774
UserControl, 715, 717, 719-720, 732
1011
userControl_AmbientChanges event procedure, 727
UserControl information, 726
UserControl PropertyChanged method, 724
UserControlScaleHeight, 728
UserControl_WriteProperties, 716
User Datagram Protocol, 810-811,823
user -defined coordinate system, 373-374
user-defined date and time formats offunction Format, 351-352
user -defined formats, 327
user-defined numeric format, 329
User-defined scale, 373
user-defined type, 213, 248, 617-618,622,647
user-defined type definition, 618
user-drawn controls, 714, 716
user friendly, 12-13,51
UserMode property, 727
user name, 818
users, 650
using the Internet Trans-fer control, 822
using the Winsock control, 839
utility method, 653
utility procedure, 214
v Val function, 322-323
ValidateDay, 665
Val.idate event procedure
Val.idateHour,657
ValidateMinute,657
ValidateMonth,665
ValidateSecond,657
ValidateYear,665
validation, 657
Value, 801
VALUE, 846
1012
value, 661, 928
Value of Enqueue, 917
Value property, 281, 488, 733
Value Slider property, 431
value returned when condition is False, 95
value returned when condition is True, 95
Value scrollbar property, 429
variable, 62, 647, 652
variable-length arguments, 285
variable-length argument list, 285
variable-length string, 305
variant, 63,182,186-187, 327, 801, 842, 898, 899, 901,906,912,932-933
variant array, 285-286
variant by default, 898
variant data type, 165
variant element, 927
variant sUbtypes, 842
varType, 898
vb, 139 vbAbort MsgBox return value,
441
vbAbortRetryIgnore MsgBox constant, 439
VB ActiveX Control Interface Wizard, 732
vbAl ignBot tom constant, 463
vbAlignLeft constant, 463
vbAlignNone constant, 463
vbAlignRight constant, 463
vbAlignTop constant, 462-463
vbAltMask constant, 517-518, 520,527
vbAPplicationMoClar, 440;-442
vbApplicationModal constant,440
vbArrangeIcons constant, 468
vbArrow constant, 510
vbArrowHourglass constant,510
vbArrowQuestion constant, 510
vbBeginDrag constant, 521-522
vbBinaryCompare constant, 309,355-356
vbBlack, 391, 528, 728
vbBlackness, 383, 385
vbBlue, 391, 527
vbBoolean constant, 898
vbBSDash,387
vbBSDashDot, 387
vbBSDashDotDot,387
vbBSDot, 387
vbBSInsideSolid, 387
vbBSNone, 462
vbBSSolid, 387
vbButtonGraphical con-stant, 189
vbButtonStandard con-stant, 189
vbByte constant, 898
vbCancel constant
vbCancelDrag constant, 521
vbCancel MsgBox return value, 441
vbCascade constant, 468
vbCenter,437
vbCentimeters, 373-374
vbCharacters,373
vbChecked,281-282
vbCornboDropDown,420
vbCornboDropDownList,420
vbCornboSimple, 420
vbCopyPen property, 382-383, 385
vbCri tical MsgBox constant for icons, 440
vbCross,384
vbCrosshair constant, 510
- vbCtrlMask constant, 517-518,520,527
vbCurrency constant, 898
vbCustom constant, 510
vbCyan, 391, 528
vbDatabaseCompare con-stant,309
vbDash,383
vbDashDot,384
vbDashDotDot,384
vbDate constant, 898
vbDecimal, 898
vbDefault, 219, 510
INDEX
vbDefaultButtonlMsgBox constant, 443
vbDefaultButton2MsgBOx constant, 443
vbDefaultButton3MsgBox constant, 443
vbDefaultButton4MsgBoX constant, 443
vbDiagonalCross,384-385 vbDot,383
vbDouble constant, 898
vbDownwardDiagonal,384
vbDstInvert, 399
vbEmpty constant, 898
vbEndDrag constant, 521
vbExclamation, 442
vbExclamation MsgBox constant for icons, 440
vbFirstFourDays constant, 344
vbFirstFullWeek constant, 344
vbFirstJanl constant, 344
vbFriday constant, 341
vbFSHorizontalLine,384
vbFSSolid,384-385
vbFSTransparent, 384-385
vbGeneralDate constant, 349
vbGreen, 391, 527
vbHourglass, 219, 510
vbIbeam constant, 510
vbIgnore MsgBox return value, 441
vbInches, 373
vbInformation MsgBox constant for icons, 440
vbInsideSolid, 384-385
vbInteger constant, 898
vbInvert, 383
vbInvisible,384
vbKeyA through vbKeyZ constants (A key through Z key), 528
vbKeyBack constant (Back
space key), 527
vbKeyCapi tal constant (Caps
Lock key), 527
vbKeyControl constant (Ctrl
key), 527
INDEX
vbKeyDecimal constant (Period key), 527
vbKeyDelete constant (Delete key), 527
vbKeyEscape constant (Escape key), 527
vbKeyInsert constant (Insert key), 527
vbKeyReturn constant (Return key), 527-528
vbKeyShift constant (Shift key), 527
vbKeySpace constant (spacebar), 527
vbKeyTab constant (Tab key), 527
vbLeftButton constant, 515 vbLeftJustify,437
vbListBoxCheckBox,425
vbListBoxStandard,425
vbListBoxStandardList-Box, 425
vbLong constant, 898
vbLongDate constant, 349 vbLongTime constant, 350
vbMagenta, 391, 528
vbMaskNotPen,383
vbMaskPen,383
vbMaskPenNot,383
vbMergeNotPen,383
vbMergePen, 383 vbMergepenNot,383
vbMiddleButton constant, 515
vbMillimeters,373
vbModal constant, 472 vbMonday constant, 341
vbNewLine constant, 592 VB98 directory, 797
vbNoDrop constant, 510
vbNo MsgBox return value, 441
vbNop,383
vbNotCopyPen,383
vbNotMaskPen,383
vbNotMergePen,383
vbNotXorPen, 383
vbNull,898
vbobject constant, 898
vbOKCancel MsgBox con-stant,439
vbOKOnly, 829, 832
vbOKOnly MsgBox constant, 439
vbPixels, 373, 728
vbPoints,373,728
VB Property Page Wizard, 741-742
vbPRORLandscape Printer constant, 401
vbPRORPortrait Printer constant, 401
vbPRPQDraft Printer constant,401
vbPRPQHigh Printer constant,401
vbPRPQLow Printer constant,401
vbPRPQMedium Printer constant, 401
vbQuestion MsgBox constant for icons, 440
vbRed constant, 376-377, 386, 391,527
vbRetry MsgBox constant, 439
vbRetry MsgBox return value, 441
vbRightButton constant, 437,515
vbRightJustify,437
vbSaturday constant, 341
\TB Script, 16,840,842,850
VBscript, 844
VBScript Compound Interest Cal-culator, 858
vbShapeCircle,389
vbShapeOval,389
vbShapeRectangle,389
vbShapeRoundedRectan-gle,389
vbShapeRoundedSquare, 389
vbShapeSquare,389
vbShiftMask constant, 517-518,520,527
vbShortDate constant, 350
vbShortTime constant, 350
vbSingle constant, 898
vbSizeAll constant, 510
vbSizeNESW constant, 510
vbSizeNS constant, 510
1013
vbSizeNWSE constant, 510
vbSizeWE constant, 510
vbSizePointer constant, 510
vbSModeAutomation,752
vbSModeStandalone,752
vbsolid, 383, 385
vbString constant, 898
vb Sunday constant, 341
vbSystemModal constant, 440
vbTab, 138, 254
vbTextCompare constant, 309
vbThursday constant, 341
vbTileHorizontal. constant,468
vbTileVertical constant, 468
vbTransparent,390
vbTuesday constant, 341
vbTwips,373-374
vbUnchecked, 281-282, 385
vbUpArrow constant, 510
vbUpwardDiagonal,384
vbUseCompareOption con-stant, 308-309
vbUser,373-374
vbVerticalLine,384
vbWednesday constant, 341
vbWhite,391
vbWhiteness, 383, 385
vbXorPen, 383, 386
vbYellow, 391, 527
vbYes constant
vbYesNo, 442
vbYesNo MsgBox constant, 439
vbYesNoCancelMsgBox constant, 439
VBX controls, 714
VCR, 870
VCR, 871
verb, 646-647
vertical coordinate, 372
vertical scrollbar, 314, 413, 429, 483-484
vertical spacing, 94, 131
version compatibility, 755
Version Compatibility Frame, 754
1014
Version Compatibility in ActiveX Components in on-line documentation, 755
video,4,834,861,874-876
video clip, 810
videodisc, 871
videodisc player, 870
video games, 372, 672
videotape player, 870 View icons, 33
View Code, 29, 745
View Code button, 28, 54, 227
View Code in Project window, 736
View menu, 27, 33, 558, 694
View Object, 724, 745-
View Object button, 28-29, 227
views of data, 769
View Summary Report CheckBox, 736
visible, 29
Visible checkBox, 435, 437
visible ComboBox proper-ties, 420
visible control, 529
VisibleCount property, 789
Visible ListBox property, 424
Visible property, 529, 580, 788, 796
Visible scrollbar property, 429
Visible Sliderproperty, 431
Visible TextBox property, 413
Visual Basic, 667, 672
Visual Basic class libraries, 669
Visual Basic compiler, 694 Visual Basic editor, 426
Visual Basic extension controls, 714
Visual Basic 5.0, 714
Visual Basic IDE, 26, 467
Visual Basic 6 Multimedia Cyber Classroom, 16
Visual Basic procedures, 178
Visual Basic reference, 660
Visual Basic screen manager pro-gram, 672
Visual Basic Script (VB Script) , 840
Visual C++, 15,412,714
visual editing, 714
visual element, 747
visual feedback, 509
Visual J++, 8, 15,412
visual programming, 11,33,51, 54,409,436
\Vol=number\,870
Volume, 684, 688
volume control, 432
VolumeName property, 597
vsbScroll.Value, 431
vsb vertical scrollbar preflx, 431
VScrollBar control, 31, 427
w wait for a connection, 829
waiting line, 898
Wait property, 871, 875
walk off either end of an array, 256
wakeUp, 655-656
"warehouse" section of the computer,4
Watch window, 568, 569
WA V (Windows wave flle for-mat) audio, 885
WaveAudio, 871
Web-based applications, 809
Web browser, 51, 812-814
WebBrowser control, 811-813, 815-816
Web page, 372, 810, 862
Web server, 814, 816
wedge-shaped piece of a circle, 376
weekday function, 340-341, 344
WeekdayName function, 340-342
Wend,105
WHERE clause, 780, 782, 793
WHERE query keyword, 779
While, 92
INDEX
WhilelWend control structure, 163-164
WhilelWend repetition struc-ture, 98-99
Whisper, 869
White, 468
white, 391, 393, 514
white arrow, 29
white-space characters, 75, 94
whole number, 109,248
"wide bandwidth", 16
Width, 376, 385, 484
width of a Line control line, 387
WidthOfPage, 884
width of range, 208
width property, 31, 869
width statement, 488
wildcard characters asterisk (*) and question mark #, 780
Win32 Application programming Interface (API) functions, 9
windowed control, 714
windowed mode, 715
windowless controls, 714
Windowless property, 714
Window menu, 463
Windows, 7, 9, 730
Windows applications, 372
windows cascade, 468
Windows Control Panel, 400-401
Windows handle, 714-715
Window's look-and-feel, 398, 463
Windows menu, 33
Windows 98, 746
Windows 95, 746
Windows NT, 6,746
Windows operating system, 12
Windows programs, 8,26,51
Win sock control, 811, 823, 825, 839
Winsock object, 825
Win32 Application Programming Interface (APT), 9
Wirth, N., 8-9
wizard,731
wi th statement, 603, 665
• wmf image file extension, 398
INDEX
VVord,459,712-714 word, 619
word equivalent of a check amount, 369
VVordPad,480-481
word processor, 12, 304, 315
words, 12
workstation, 5
World Wide Web (VYWW), 15, 372,709,809,811,840,869
World Wide Web browser, 810
World Wide Web page, 862
World Wide Web server, 810
World Wide Web site, 810
Wrap property, 488
wrap to the next line, 375
write, 673
Write, 617
WriteBlankLines method,· 600
write call, 673
wri teLine method, 600, 603
Write method, 600
write-only mode, 617
Write #, 561
Wri teProperties, 723-724, 728, 738
WriteProperty,723
writing data randomly to a ran-dom-access fIle, 624
writing data to a text fIle, 600
write to a socket, 810
www.deitel.com. 17
www.microsoft.com.825. 831,837
x X, 676
x-coordinate, 372, 378, 381, 399, 525
Xerox's Palo Alto Research Center (PARC), 12
y Y,676
y-coordinate, 372, 378, 381, 399, 525
"year 2000", 8
Year function, 340, 342
yellow, 391, 393, 514, 564
"Yes/No" named numeric for-mat, 329
z zero balance, 606
1015