-
The Basics
-
Chapter 1 Introduction
- What Is VBA?
- A Brief History of VBA
- What Can You Do with VBA?
- Object Models: The Power of Programming with VBA
-
Chapter 2 Program Structure
- Getting a VB Program to Run
- The Structure of a VB Program
- Ending Your VB Program
-
Chapter 3 VBA Variables and Data Types
- Visual Basic Data Types
- Type Conversion
- The Variant
- Declaring Variables and Constants
- Array Variables
- User -Defined Types
- Variable Scope and Lifetime
- Object Variables and Binding
- Passing Parameters
- Intrinsic Constants
-
Chapter 4 Class Modules
- Properties
- Enumerated Constants
- Class Module Events
- Implementing Custom Class Methods
- Creating ActiveX Components
- Using ActiveX Components in a Project
-
Chapter 5 Automation
- Creating Object Model References
- Reading the Object Model
- Working with the Object Model
- Collection Objects
- Trapping an Automation Server's Events
- Automation Examples
- Automation Performance Tips
-
Chapter 6 Error Handling
- Building a Robust Application
- Error Handling in Procedures
- Error Handling in ActiveX Servers
- Reporting Errors
-
-
Reference
-
Chapter 7 The Language Reference
-
Chapter 8 The Language Reference, Part 1: #Const Directive–Drives Collection Object (VB6)
-
Chapter 9 The Language Reference, Part 2: End... Statement–FV Function
-
Chapter 10 The Language Reference, Part 3: Get Statement–PV Function
-
Chapter 11 The Language Reference, Part 4: QBColor Function–Year Function
-
-
Appendixes
-
Appendix A Language Elements by Category
- Collection Object
- Conditional Compilation
- Data Type Conversion Functions
- Data Bindings Objects (VB6 only)
- Date and Time Functions
- Dictionary Object (VB6 Only)
- Err Object
- FileSystem Objects (VB6 only)
- File and Folder Handling
- Financial Functions
- Formatting Functions
- Information Functions
- Interaction Functions
- Math Functions
- Programming and ActiveX Programming
- Printer Object Not available in hosted versions of VBA
- Program Structure and Flow
- Registry Functions
- String Manipulation
- Variable Declaration
-
Appendix B Language Constants
- Application Window Style (VbAppWinStyle)
- Calendar (VBCalendar)
- Call Type (VB6 only)
- Compare Method (VbCompareMethod)
- Data Binding Update Mode (VB6 Only)
- Date Time Format Styles (VB6 Only)
- Day of Week (VbDayOfWeek)
- Drive Type (VB6 only)
- File Attributes (VbFileAttribute)
- File System Objects File Attributes (VB6 Only)
- First Week of Year (VbFirstWeekOfYear)
- IME Status (VbIMEStatus)
- Language Constants
- Log Event Type Style (LogEventTypeConstants)
- Log Mode Constants (VB6 only)
- Message Box Result (VbMsgBoxResult)
- Message Box Style (VbMsgBoxStyle)
- Special Folder Types (VB6 only)
- String Conversion (VbStrConv)
- TextStream IOMode (VB6 only)
- Tristate Constants (VB6 Only)
- Variant Type (VbVarType)
-
Appendix C Operators
- Arithmetic Operators
- String Operator
- Comparison Operators
- Logical and Bitwise Operators
- Operator Precedence
-
Appendix D What's New in VB6?
- Create DataSource and Data Consumer Classes
- Functions Can Return Arrays
- Dynamic Arrays Can Be Assigned
- Remote User-Defined Types
- New Functions
- Enhanced CreateObject Function
- New Object Models
-
-
Colophon
- Title:
- VB & VBA in a Nutshell: The Language
- By:
- Paul Lomax
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- October 1998
- Ebook Release:
- June 2009
- Pages:
- 656
- Print ISBN:
- 978-1-56592-358-4
- | ISBN 10:
- 1-56592-358-8
- Ebook ISBN:
- 978-0-596-10371-2
- | ISBN 10:
- 0-596-10371-9
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of VB & VBA in a Nutshell: The Language is a Newfoundland dog, a domesticated breed known for its size and sweet temperament. Newfoundlands, from the island of the same name, are semiaquatic, usually black dogs. They stand about 28 inches tall and weigh around 130-150 pounds.
The Newfoundland, descended from European breeds, has traditionally been used as a working dog, on land and around water, for hunting and fishing. Their large, webbed feet, thick coat, powerful frame, and large lung capacity are well suited for work on ships and around water, as well as for the island's climate. The breed is associated with stories of brave animals making heroic ocean rescues and assisting with shipwrecks. Today, the Newfoundlands' docile nature and calm disposition have made them popular pets. Mary Anne Weeks Mayo was the copy editor and project manager for VB & VBA in a Nutshell: The Language. Melanie Wang, Ellie Fountain Maden, Clairemarie Fisher O'Leary, and Sheryl Avruch provided quality control. Mike Sierra provided FrameMaker support and Seth Maislin wrote the index.
Edie Freedman designed the cover of this book, using a 19th-century engraving from the Dover Pictorial Archive modified in Adobe Photoshop. The cover layout was produced with QuarkXPress 3.32 using the ITC Garamond font. Whenever possible, our books use RepKover?, a durable and flexible lay-flat binding. If the page count exceeds RepKover's limit, perfect binding is used.
The inside layout was designed by Nancy Priest and implemented in FrameMaker 5.5 by Mike Sierra. The text and heading fonts are ITC Garamond Light and Garamond Book. The illustrations that appear in the book were created in Adobe Photoshop 4 and Macromedia FreeHand 7 by Robert Romano. This colophon was written by Nancy Kotary.
