Using the Undocumented Count Property of Control Arrays
In VB4, each control array is its own collection and thereforehas a Count property. This was not the case in version 3. It isnow possible to loop through all of
In VB4, each control array is its own collection and thereforehas a Count property. This was not the case in version 3. It isnow possible to loop through all of
When a procedure can operate on multiple types of controls, youcan use VB’s TypeOf function to determine a control type at runtime: Function myFunc(ctl as Control) ‘ This code works
Properly designed Windows programs should change their own colorsaccording to the system colors. One of the reasons why developerstend to forget that part of design is that it is not
Jet 3.0 includes an undocumented feature that lets you log Jet’soptimization plan of queries. To enable this feature, you mustcreate this registry key using Windows’ RegEdit program: HKEY_LOCAL_MACHINESOFTWAREMicrosoft _ Jet3.0EnginesDebug
This need was established by developing VB applications for 3270mainframe apps. A user typing in a 3270 edit field is automaticallyplaced into the next field once reaching the maximum number
When you write an If statement such as: If Category = “CM” or Category = “M2” or Category = “P1” or Category = “ZZ” thenProcessEmployeeEndif it can be simplified by:
If you have to assign True or False to a variable after testinga certain condition, then the If statement may be done away withaltogether. For example, if you have something
Most collections are zero-based. The COUNT property returns thenumber of members of a collection, as opposed to the highest membernumber. So when we see code that loops through all the
It’s a good idea to set your form variables to Nothing to recoverall memory that was allocated for the form module. Executing SetForm1 = Nothing for a loaded form, however,