Cover image for Learning to program with Visual Basic
Title:
Learning to program with Visual Basic
Author:
McKeown, Patrick G., 1943-
Personal Author:
Edition:
Second edition.
Publication Information:
New York : Wiley, [2002]

©2002
Physical Description:
xii, 594 pages : illustrations ; 28 cm + 1 computer optical disc (4 3/4 in.)
General Note:
Includes index.
Language:
English
Title Subject:
Added Author:
ISBN:
9780471418627

9780555000359
Format :
Book

Available:*

Library
Call Number
Material Type
Home Location
Status
Central Library QA76.73.B3 M3973 2002 Book and Software Set Non-Fiction Area-Oversize
Searching...

On Order

Summary

Summary

Visual Basic has begun to replace COBOL as an introductory programming language due to its ease of use and the near universal move to the Windows operating system. McKeown and Piercy's text addresses the need for a text that offers an adequate balance between the demonstration of the Visual Basic interface and teaching programming logic that the reader must know regardless of the language. The goal of this book is "to achieve a balance between demonstrating the power and excitement of Visual Basic and the need to teach traditional programming logic."


Author Notes

Patrick G. McKeown is Professor and Head of the Department of Management Information Systems at the University of Georgia.


Table of Contents

1 An Introduction to Programming and Visual Basicp. 1
Learning Objectivesp. 1
Scenario: Introduction to Vintage Videosp. 1
Information Systems in Businessp. 2
Computer Operationsp. 3
Programs and Programmingp. 5
The Visual Basic Languagep. 9
Summaryp. 16
Key Termsp. 17
Exercisesp. 17
Projectsp. 19
Project: Joe's Tax Assistancep. 21
2 Using Visual Basic to Create a First Projectp. 23
Learning Objectivesp. 23
Scenario: Opening Screen for Vintage Videosp. 23
Getting Started with Visual Basicp. 24
Control propertiesp. 30
Adding a Control to the Formp. 32
Adding More Controls to the Formp. 36
Adding Code to the Projectp. 38
Working with Files in Visual Basicp. 41
Using Visual Basic Helpp. 47
Summaryp. 52
New Visual Basic Elementsp. 53
New Programming Statementsp. 53
Key Termsp. 53
Exercisesp. 53
Projectsp. 54
Project: Joe's Tax Assistance (cont.)p. 57
3 Variables, Assignment Statements, and Arithmeticp. 59
Learning Objectivesp. 59
Scenario: Calculating Amount Due at Vintage Videosp. 59
Working with Variablesp. 61
Event-driven Inputp. 67
Using Assignment Statements for Calculationsp. 75
Application to Scenariop. 81
Printing form, Clearing Entries, and Exitingp. 88
More on Using Functionsp. 89
Errors in Visual Basicp. 93
Summaryp. 95
New Visual Basic Elementsp. 96
New Programming Statementsp. 97
Key Termsp. 97
Exercisesp. 97
Projectsp. 98
Project: Joe's Tax Assistance (cont.)p. 102
4 The Selection Process in Visual Basicp. 105
Learning Objectivesp. 105
Scenario: Using Decisions at Vintage Videosp. 105
The Selection Processp. 106
The two-Alternative Decision Structurep. 109
Application to Scenariop. 113
The Multiple-Alternative Decision Structurep. 116
Application to Scenariop. 123
More Complex Decisionsp. 128
Using the Form_Load Eventp. 134
A First Look at Visual Basic's Debugging Toolsp. 136
Summaryp. 138
New Visual Basic Elementsp. 140
New Programming Statementsp. 140
Key Termsp. 141
Exercisesp. 141
Projectsp. 144
Project: Joe's Tax Assistance (cont.)p. 149
5 The Repetition Process in Visual Basicp. 151
Learning Objectivesp. 151
Scenario: Multiple Videos at Vintage Videosp. 151
Introduction to Loopsp. 154
Event-Driven Loopsp. 156
Determinate Loopsp. 162
Indeterminate Loopsp. 169
Application to Scenariop. 178
Nested Loopsp. 187
Creating an Executable Filep. 188
Debugging Loopsp. 190
Summaryp. 193
New Visual Basic Elementsp. 194
New Programming Statementsp. 194
Key Termsp. 195
Exercisesp. 195
Projectsp. 198
Project: Joe's Tax Assistance (cont.)p. 204
6 Working with Arrays in Visual Basicp. 207
Learning Objectivesp. 207
Scenario: Working with Lists at Vintage Videosp. 207
Using Control Arraysp. 209
Working with Lists as Arraysp. 214
Inputting Values to an Arrayp. 218
Processing with Arraysp. 224
Finding Items and Working with Multiple Listsp. 230
Application to Scenariop. 238
Searching for Videosp. 243
Working with Two-Dimensional Arraysp. 247
Using the Step Commands for Debuggingp. 250
Summaryp. 252
New Visual Basic Elementsp. 253
New Programming Statementsp. 254
Key Termsp. 254
Exercisesp. 254
Projectsp. 256
Project: Joe's Tax Assistance (cont.)p. 262
7 Using Functions, Subs, and Modulesp. 265
Learning Objectivesp. 265
Scenario: Lists at Vintage Videos (cont.)p. 265
Using General Proceduresp. 267
Working with General Proceduresp. 270
Using Functions: an Examplep. 275
Using Subs: Sorting Examplep. 278
Application to Vintage Videosp. 285
Global Declarations and the Code Modulep. 290
Searching for Member and Video Namesp. 294
Adding to, Deleting from, and Printing Listsp. 299
Additional Topics on General Proceduresp. 307
Summaryp. 309
New Programming Statementsp. 310
Key Termsp. 310
Exercisesp. 310
Projectsp. 312
Project: Joe's Tax Assistance (cont.)p. 317
8 Security, Menus, and Filesp. 319
Learning Objectivesp. 319
Scenario: Adding More Functionality to the Vintage Videos Projectp. 319
Using Passwords for Securityp. 320
Creating a Menu System for Vintage Videosp. 325
Adding Code to Menu Itemsp. 332
Creating a Memo Editorp. 335
Working with the File Submenup. 339
Other File Operationsp. 344
The Editing Submenup. 349
The Format Submenup. 352
Summaryp. 357
New Visual Basic Elementsp. 358
New Programming Statementsp. 359
Key Termsp. 359
Exercisesp. 359
Projectsp. 360
Project: Joe's Tax Assistance (cont.)p. 364
9 Introduction to Working with Databases in Visual Basicp. 367
Learning Objectivesp. 367
Scenario: Using a Database at Vintage Videosp. 367
Database Conceptsp. 369
The Data Controlp. 373
Adding Navigational Buttonsp. 376
Adding, Editing, and Deleting Recordsp. 380
Finding Recordsp. 386
Summaryp. 391
New Visual Basic Elementsp. 394
Key Termsp. 395
Exercisesp. 395
Projectsp. 397
Project: Joe's Tax Assistance (cont.)p. 403
10 Advanced Database Operationsp. 405
Learning Objectivesp. 405
Scenario: Revising Vintage Videosp. 405
Renting Videosp. 413
Working with Videosp. 421
More on the DB Controlsp. 427
Using SQL to Check in Videosp. 431
Using the Data View Windowp. 437
Summaryp. 440
New Visual Basic Elementsp. 442
Key Termsp. 442
New Programming Statementsp. 442
Exercisesp. 442
Projectsp. 443
Project: Joe's Tax Assistance (cont.)p. 447
11 Using Visual Basic to Create Graphicsp. 449
Learning Objectivesp. 449
Scenario: Using Graphics to Analyze Sales at Vintage Videosp. 449
Computer Graphicsp. 451
Creating Graphics using Visual Basicp. 452
Creating Graphics (continued)p. 457
Creating Business Graphicsp. 463
Preparing to Create Line and Bar Chartsp. 466
Drawing Line Chartsp. 473
Drawing Bar Chartsp. 480
Drawing Pie Chartsp. 484
Drawing Scatter Diagramsp. 490
Summaryp. 492
New Visual Basic Elementsp. 493
Key Termsp. 493
Exercisesp. 494
Projectsp. 496
Project: Joe's Tax Assistance (cont.)p. 499
12 User-defined Data Types, Direct Access Files, and Object Classesp. 503
Learning Objectivesp. 503
Scenario: Creating a Payroll System at Vintage Videosp. 503
User-defined Data Typesp. 504
More on Programmer-Defined Data Typesp. 511
Vintage Videos Payroll Projectp. 514
Calculating Gross and Net Payp. 521
Using Direct Access Filesp. 525
Creating Objects in Visual Basicp. 530
Using the Class Builder Wizardp. 535
Declaring and Using Objectsp. 539
Summaryp. 543
New Visual Basic Elementsp. 544
New Programming Statementsp. 545
Key Termsp. 545
Exercisesp. 546
Projectsp. 547
Project: Joe's Tax Assistance (cont.)p. 551
13 Introduction to VBScriptp. 553
Learning Objectivesp. 553
Scenario: Vintage Video Goes Onlinep. 553
Using VBScriptp. 559
Web Page Creationp. 562
Validating Web Page Inputp. 569
Using VB-Script for Calculationsp. 575
Summaryp. 580
VBScript Form Elementsp. 581
VBScript Programming Statements Different from Visual Basicp. 581
Key Termsp. 582
Exercisesp. 582
Projectsp. 582
Project: Joe's Tax Assistance (cont.)p. 584
Indexp. 587

Google Preview