Home > Store

Paul Sheriff Teaches Visual Basic 6

Register your product to gain access to bonus material or receive a coupon.

Paul Sheriff Teaches Visual Basic 6

Book

  • This product currently is not for sale.
Not for Sale

About

FAQs

Question 1: Where is the author's website?

Solution 1: The author's website can be found at http://www.pdsa.com/

Description

  • Copyright 1999
  • Dimensions: 7.375 X 9.125
  • Pages: 832
  • Edition: 1st
  • Book
  • ISBN-10: 0-7897-1898-7
  • ISBN-13: 978-0-7897-1898-3

Paul Sheriff has taught Visual Basic long enough to know what beginning programmers want. This book is designed for programmers that have little or no Visual Basic or Windows programming experience. Students will learn the syntax of the Visual Basic language, event driven programming, and how to put together a complete Visual Basic application. The emphasis in this book is on good coding practices such as industry accepted naming standards, indentation and code reusability. If you are a developer who needs to learn how to put together a Visual Basic application the right way, this book is for you.

Downloads

Downloads


Bonus Chapter

Bonus Chapter - "VBA Programming Standards". This is a PDF file that is viewable using the Adobe Acrobat Reader. - 118kb -- bonus.pdf

Source Code


These are the code files for the book, divided by chapter. - 511kb -- code.exe

Sample Content

Table of Contents



Introduction.

Fundamentals of Visual Basic 6.

I. INTRODUCTION TO VISUAL BASIC 6.

1. Visual Basic Overview.

What Is Visual Basic? A Visual Basic Application. History of Visual Basics. Features of Visual Basic. Code Generation Options. Future of Visual Basic. Versions of Visual Basic. Visual Basic Application Types. Visual Basic Application Components. Microsoft Windows. Computing Terms. Programming Applications for Windows. Summary. Review Questions.

2. Getting Started.

Visual Basic Environment. Visual Basic First-time Setup. Creating a New Project. Forms. Properties. Naming the Project. The Project Properties Dialog. Saving the Project. Summary. Review Questions.

3. Controls.

Controls. Label Control. Text Box Control. Command Buttons. Frames. Option Buttons. Check Boxes. Picture Control. Image Control. Summary. Review Questions.

4. Lists and Menus.

List Box Control. Combo Box Control. Menu System. Naming Controls. Creating an Executable Program. Summary. Review Questions.

5. Events Happen.

Code Window. Breakdown of an Event Procedure. Form Events. Label Events. Text Box Events. Command Button Events. Frame Events. Option Button Events. Check Box Events. Picture Control Events. Image Control Events. List Box Events. Combo Box Events. Menu Events. Summary. Review Questions.

6. Variables.

What Is a Variable? Data Types. Declaring Variables. Assigning Values to Variables. Scope and Lifetime of a Variable. Examples of Variables. Naming Variables. The Variant Data Type. Summary. Review Questions. Exercises.

7. Arrays, Types, and Constants.

Arrays. Miscellaneous Array Topics. Multidimensional Arrays. User-defined Types. Constants. Mathematical and Relational Operators. Summary. Review Questions. Exercises.

8. Conditional Logic and Looping.

If...Then. Select Case. Compiler Directives. Looping in VB. For...Next. The For...Next Example. Nested Constructs. Exit For/Exit Do. Exit Sub/Exit Function. With...End With. Summary. Review Questions/Exercises.

9. Procedures and Functions.

Procedures. Sub Main() Procedure. Functions. Parameters and Arguments. Call by Value and Call by Reference. Optional Arguments. Named Arguments. Naming Standards. Summary. Review Questions. Exercises.

10. Built-in Visual Basic Functions.

Using Built-in Functions. String Functions. Date Functions. Conversion Functions. Functions to Test Data Types. Methods. Summary. Review Questions.

11. Dialog Boxes.

Uses of Dialog Boxes. Modal Versus Nonmodal. MsgBox. InputBox Function. Common Dialog Control. Making Your Own Dialog Box. Summary. Review Questions. Exercises.

12. The ADO Data Control.

Getting at Data. Universal Data Access. Service Providers for OLE DB. The ADO Data Control. ADO Data Control Properties. Using the Data Control. Summary. Review Questions.

13. Data Control Programming.

The Recordset Property. Order of Events. Modifying Data Programmatically. Adding Records. Detecting Changes in Data. Data Control Error Handling. Summary. Review Questions.

14. Additional Data Control Topics.

Other Data-aware Controls. Displaying the Number of Records. Your Own Record Movement Buttons. Finding Records. Summary. Review Questions.

15. Multiple Document Interface.

What Is MDI? Creating an MDI Form. Creating the Employee Tracking System. Child Menus in MDI Applications. Arranging Child Forms. Tracking Child Windows. Creating Pop-up Menus. Unloading an MDI Application. Summary. Review Questions.

16. The Debugger.

Three Modes of Visual Basic. The Debug Toolbar. Invoking the Debugger. Quick Watch. Setting the Next Statement to Execute. The Call Stack Window. Setting Breakpoints. The Stop Statement. Setting Watch Variables. Using the Immediate Window. Printing to the Immediate Window. Summary. Review Questions.

17. Error Handling.

How Visual Basic Handles Error. Error-handling Techniques. On Error GoTo <LabelName>. The Err Object. Getting a List of Errors. On Error Resume Next. Errors in the Call Stack. Turning Error Handling Off. Creating a Global Error Handler. Summary. Review Questions. Exercises.

18. IDE and Editor Tips and Tricks.

Using the Code Editor. Form Editing Tips and Tricks. Changing the IDE. Summary. Review Questions. Exercises.

II. INTERMEDIATE VISUAL BASIC.

19. Object-based Programming.

Defining Object-based Programming. Object-based Coding Versus Procedural Coding. Converting to Object-based _Programming. Advantages of OOP. Disadvantages of OOP. Summary. Review Questions.

20. Creating Class Modules.

Visual Basic Class Modules. Creating a Simple Class. Form Objects. The TextStream Class. Warning About Global Objects. Default Methods and Properties. Summary. Review Questions. Exercises.

21. System Objects.

What Is an Object? Object Types. Form and Control Objects. System Objects. The App Object. The Screen Object. The Clipboard Object. Creating New Forms at Runtime. Summary. Review Questions.

22. Collections.

What Is a Collection? The Forms Collection. Keeping Track of Form Instances. Checking for Instances of Forms. The Controls Collection. The Printer Collection. The Collection Class. Using the Collection Class. Problems with Public Collections. Create Your Own Collection Class. Adding Iteration. Summary. Review Questions. Exercises.

23. Tips and Tricks.

Handling Keystrokes. Validating Data. Control Tricks. The DataFormat Property. The TabIndex Property and the Label Control. Third-Party Controls. Additional Functions in Visual Basic. Summary. Review Questions.

24. ActiveX Data Objects.

The Connection Object. The Recordset Object. Opening a Forward-Only Recordset. Error Handling. Command Objects. Summary. Review Questions. Exercises.

25. Data Entry with ADO Objects.

Creating a New ADO Project. Adding Data. Editing Data. Deleting Data. Summary. Review Questions. Exercises.

26. Wizards

Data Form Wizard. Examples. Application Wizard. Summary. Review Questions. Exercises.

27. Visual Database Tools.

Visual Database Tools Overview. Data Environment Designer. Data View Window. The Query Design Window. SQL Editor for Stored Procedures and _Triggers. The Database Diagram Window. Visual Data Manager. Summary. Review Questions. Exercise.

28. Using the Windows API.

What Is the Windows API? Uses of the Windows API. Windows Components. ANSI Versus Unicode. Sources for Windows API Information. Declaring API Functions to Visual Basic. Calling API Functions. The SendMessage API Function. Limiting Characters in a Combo Box. The GetDriveType Function. Retrieving System Resources. The About Form. The OSystemGet() Method. The GetSysInfo() Method. Summary. Review Questions. Exercises.

29. Storing User Information.

INI Files. INI Class. The System Registry. Built-in Visual Basic Functions. The Registry Class. Summary. Review Questions. Exercises.

30. ActiveX Controls: Part 1.

Windows Controls in Visual Basic. The ImageList Control. Toolbar. Coolbar. Status Bar. ImageCombo. Summary. Review Questions. Exercises.

31. ActiveX Controls: Part 2.

DateTimePicker Control. The MonthView Control. The Progress Bar Control. The Slider Control. The UpDown Control. The TabStrip. The SSTab Control. Summary. Review Questions. Exercise.

32. Drag and Drop.

Drag and Drop Defined. Automatic Drag and Drop. Changing the Drag Icon. No Dropping Here. Manual Drag and Drop. Simplifying Drag and Drop. Summary. Review Questions.

33. Optimization.

Speed Optimization Tricks. Size Optimization Tricks. Summary. Review Questions.

34. Package and Deployment Wizard.

What's a Setup? Getting Ready to Distribute. Running the P&D Wizard. Deployment Options in the P&D Wizard. What's a Dependency File? What Can You Distribute from Visual Basic? The Setup Toolkit. Testing Your Installation. Summary. Review Questions. Exercise.

III. APPENDIXES.

Appendix A. VBA Programming Standards.

Reasons for Naming Conventions. Environment Options. Custom Control Naming Conventions. Menu Naming Conventions. Naming Conventions for Other Controls. Variable/Object Naming. Variable Data Type Prefixes. Scope Prefixes. User-defined Types. Class Naming. Naming Constants. Variant Data Type. Function and Procedure Naming. Error Labels. Commenting Your Code. Formatting Your Code. Operators. Scope. Summary.

Appendix B. Database Standards.

Database Naming Standards. Database Naming Conventions. Table Naming. System Tables. Temporary Tables. Column Naming. Summary.

Appendix C - Bibliography.

Recommended Programming Books. Recommended Standards Books and _Articles. ODBC References. Object-Oriented Programming _References. SQL and Database Books. Periodicals and Conferences. Products from PDSA.

Appendix D. Answers to Review Questions.

Chapter 1: Visual Basic Overview. Chapter 2: Getting Started. Chapter 3: Controls. Chapter 4: Lists and Menus. Chapter 5: Events Happen. Chapter 6: Variables. Chapter 7: Arrays, Types, and _Constants. Chapter 8: Conditional Logic and _Looping. Chapter 9: Procedures and Functions. Chapter 10: Built-in Visual Basic _Functions. Chapter 11: Dialog Boxes. Chapter 12: The ADO Data Control. Chapter 13: Data Control Programming. Chapter 14: Additional Data Control _Topics. Chapter 15: Multiple Document _Interface. Chapter 16: The Debugger. Chapter 17: Error Handling. Chapter 18: IDE and Editor Tips and _Tricks. Chapter 19: Object-based _Programming. Chapter 20: Creating Class Modules. Chapter 21: System Objects. Chapter 22: Collections. Chapter 23: Tips and Tricks. Chapter 24: ActiveX Data Objects. Chapter 25: Data Entry with ADO _Objects. Chapter 26: Wizards. Chapter 27: Visual Database Tools. Chapter 28: Using the Windows API. Chapter 29: Storing User Information. Chapter 30: ActiveX Controls: Part 1. Chapter 31: ActiveX Controls: Part 2. Chapter 32: Drag and Drop. Chapter 33: Optimization. Chapter 34: Package and Deployment _Wizard.

Appendix E. Sample Code Installation Instructions.

Getting the Latest Service Pack. Installation Instructions.

Index.

Updates

Updates & Corrections


Bonus Chapter

Bonus Chapter - "VBA Programming Standards". This is a PDF file that is viewable using the Adobe Acrobat Reader. - 118kb -- bonus.pdf

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020