Visual Basic 6 Programming:
Business Applications with a Design Perspective
Table of Contents
Chapter 4 Data, Operations, and Built-In Functions
- 4.1 Classification and Declaration of Data
- Declaring constants
- Declaring Variables
- Checking for Variable Declarations
- Rules for Variable Declaration
- 4.2 Scope and Lifetime of Variables
- Form Level Declaration
- Procedure Level Declaration
- Static Declaration
- Scope and Lifetime: A Recap
- Scope and Program Modularity
- Constant and Variable Naming Convention
- 4.3 Numeric Data and Types
- Byte and Boolean Types
- Integer and Long Types
- Single and Double Types
- Other Numeric Data Types
- Declaring Numeric Data Types
- The Variant Data Type
- A Bit of Number Systems
- The Assignment Statement
- Numeric Operations
- Data Type Conversions
- Computing Net Sale-An Application Example
- The Format Function
- 4.4 Built-in Numeric Functions
- Mathematical functions
- Conversion functions
- Date/Time functions
- Using Functions
- 4.5 String Data
- Declaring String Variables
- String Operations and Built-In Functions
- The Calculating Vending Machine-An example
- Summary
- Visual Basic Explorer
- Exercises
- Projects