Skip to main content

This version of the product is no longer supported, and this documentation is no longer updated regularly. See the latest version of this content.Opens in a new tab

Configuring a Visual Basic Project

Although you can use Caché objects from a Visual Basic project without any configuration, you must configure your Visual Basic project if you want to use early binding. Early binding is a feature of Visual Basic that allows you to declare objects so they carry information about their type. For example, with early binding, you can specify:

Dim MyList as CacheActiveX.SysList

Early binding also provides pop-up menus which show you possible elements to use to finish a statement. For example, you can choose from a list of possible object types to associate with a new instance:

Automatic Continuation in Visual Basic Code
generated description: vbcontinuation

Early binding also provides pop-up syntax windows for Caché elements:

Pop-Up Help Window in Visual Basic
generated description: vbhelpwin

To use early binding, select the project references as outlined below. The Visual Basic project configuration process consists of selecting the project references. Whenever you create a new Visual Basic project, you must add CacheActiveX.dll to your project references. To do this:

  1. Within Visual Basic, open the references window using the References menu item in the Project menu.

  2. Select the check box to the left of this DLL.

If this DLL does not exist in a list of available references:

  1. Click on the Browse button.

  2. Find CacheActiveX.dll in your Program Files\Common Files\Intersystems\Cache directory and double-click it.

Note:

If you are working with legacy code and must use the older DLL, CacheObject.dll, you can add that to your project references in a similar way. CacheObject.dll is located in the <installation-root>\bin directory.

FeedbackOpens in a new tab