Visual Basic 4: Performance Tuning and Optimization
by Keith Brophy, Timothy Koets
Published by Sams Publishing
Publication date: December 1995
The how, what, why, when, and where of Visual Basic programming, this guide focuses on day-to-day optimization problems
and their solutions. It introduces the reader to real-world performance tuning for every Visual Basic program. The CD contains
information and source code to help readers fine tune Visual Basic for efficient database operation and the best possible
Windows performance.
Optimizing Visual Basic 4
by W. Hitt
Published by Que
Publication date: November 1995
Learn to write code that can make programs runs as quickly and efficiently as possible--up to 300% faster. Learn to modify
database code so that the programs access data information as much as five times faster. The CD contains several programs
the user can run that will show speed/appearance differences between 20 or more examples of optimized and unoptimized code.
You can also use the For Each statement with an array that is not a variant
type, but the result is a substantial decrease in performance. This article
shows by example how to use the For Each statement to loop through
collections and demonstrates the decrease in performance that occurs when
you use the For Each statement to loop through arrays.
Because Visual Basic version 4.0 makes extensive use of OLE, the correct
use of object references can be crucial to the performance of a Visual
Basic application. This article suggests some optimizations that can be
included at design time.
You can speed up database operations by many times in a Microsoft Access
database by using transactions. A transaction starts with a BeginTrans
statement and ends with a CommitTrans or Rollback statement.
This document contains performance tuning tips for Microsoft Visual Basic
for Windows version 3.0 and Microsoft Access (TM) Relational Database
Systems for Windows version 1.1. Some tips still hold true for VB4!
Visual Basic allows you to retrieve data from various databases by using
Structured Query Language (SQL). These query operations can be made more
efficient by implementing some of the suggestions in this article.
Visual Basic allows you to retrieve data from various databases by using
Structured Query Language (SQL). These query operations can be made more
efficient by implementing some of the suggestions in this article.
This article explains how to avoid some of the most common errors with
Microsoft Visual Basic database programming. Use these tips to
avoid unnecessary bottlenecks when executing queries on your databases.
To speed up iterative (looping) processes through large numbers of rows using Visual Basic for
Applications (or Access Basic in version 2.0), declare all field references explicitly.