Tip Bank

DevX - Software Development Resource

Obtaining the List of Available Fonts

Some applications allow the user to select which font is used for displaying text. To do this, you need to be able to dynamically determine which fonts are available so

DevX - Software Development Resource

Useful Shortcut Keys in Visual InterDev 6

Visual InterDev 6 has many shortcuts to help navigate/write your code. Here is a summary of the ones that I’ve found most useful: Goto Line # CTRL-G Find CTRL-F Replace

DevX - Software Development Resource

Beware of RegClean With Visual InterDev 6

RegClean is a free utility from Microsoft that cleans up your system registry. However, some users have discovered that at least one version cleans too deeply and damages their Visual

DevX - Software Development Resource

Subtle Differences Between C and C++

There are a few semantic differences between C and C++ in the way they interpret certain language constructs. These differences may not result in a compiler diagnostic, so it is

DevX - Software Development Resource

Read the Serial Number of a Disk

The new Microsoft Scripting Runtime library includes a FileSystemObject hierarchy containing several objects that let you obtain information about your drives, folders, and files. For example, you can retrieve the

DevX - Software Development Resource

Check Inequality of Database Field Values

Conventional wisdom suggests this code works fine when checking a field in a database-or any Variant, for that matter-for inequality to some other value: If ![Name] “abc” Then Debug.Print “”Else

DevX - Software Development Resource

Choosing Colors for Custom Components

When creating a custom user interface component, you often face the problem of deciding what colors to use while drawing the component on the screen. However, to a large extent,

DevX - Software Development Resource

Don’t Use VarType to Test for Objects

To test whether an argument passed to a procedure is an object or something else, use the IsObject function in place of the VarType function. Consider this routine: Sub TestType(arg

DevX - Software Development Resource

Use TypeName Instead of TypeOf…Is

To write reusable routines that work with multiple types of controls, test the control type using the TypeName function in place of the TypeOf…Is statement. For example, take a look