<-- Previous || Up || Next -->

Using The Data Structures Help Sub
VB Source Link Class

How to use the Data Structure Classes within your projects.

Important Note for Professional Edition Users: Please refer to the DistributionNotesHelp and LicenseAgreementHelp Topics for information about the acceptable ways in which you can use Entisoft Tools source code with your projects.

Using the Data Structure Classes in Your Projects: The examples in each of the data structure Classes (the Deque Class, the HashTable Class, etc.) describe how to use those Classes within Visual Basic, Microsoft Access, Microsoft Excel, etc. project when you are using the Standard Edition of Entisoft Tools. If you are an Entisoft Tools Professional Edition user who would like to use the source code to these Classes in your projects, that procedure varies depending upon which program you would like to use it in. The topics below describe how to use the source code to these Classes within different programs that support Visual Basic for Applications. The source code for these data structure Classes can only be used in programs that support a version of Visual Basic or VBA that supports the hosting of Class Modules. The source code for these Classes works within almost all Microsoft Office 97 and Microsoft Office 2000 programs that support Visual Basic for Applications (VBA). Specifically, they will work within Microsoft Access 97, Microsoft Access 2000, Microsoft Excel 97, Microsoft Excel 2000, Microsoft Outlook 2000, Microsoft Word 97, and Microsoft Word 2000.

Special Note for Users of the Deque Class: When using the source code for the Deque Class within your projects, you must also include the source code for the DequeElement Class into your project, as the Deque Class is dependent upon the DequeElement Class.

Special Note for Users of the SparseArray Class: When using the source code for the SparseArray Class within your projects, you must also include the source code for the HashTable Class into your project, as the SparseArray Class is dependent upon the HashTable Class.

Using the Source Code version of data structure Classes in your Visual Basic projects: (This help topic only applies to Entisoft Tools Professional Edition users.) In order to use the source code version of these Classes within your Visual Basic projects, you must Add the source code File for them to your project, because the Entisoft Linker program does not support the direct extraction of the data structure Classes from Entisoft Tools. In Visual Basic 6.0, choose the Add Class Module item from the Project menu. Select "Class Module" then press OK. Choose the Insert File item from the Edit menu, select the source code file for the data structure you would like to insert, then press Open. The source code is located in C:\Program Files\Entisoft\Tools\v2.0, assuming that you installed Entisoft Tools Professional Edition to its default location.
Note: You should use this method to add the data structures to your project, instead of using Visual Basic's Add File command, because depending upon the type of project you are creating, the Instancing Property for the Class within your projects may be different than the Instancing Property for the Class within Entisoft Tools. In Entisoft Tools, the Instancing Property for all of the data structure Classes is set to (Public) MultiUse, whereas if you are creating a stand-alone EXEcutable type project, the Instancing must be Private.

Visual Basic Compatibility Note: The source code versions of these Classes are not compatible with Version 3.0 and prior or Visual Basic, because they did not support the hosting of Class-type Modules.

Using the Source Code version of data structure Classes in your Microsoft Access projects: (This help topic only applies to Entisoft Tools Professional Edition users.) In order to use the source code version of these Classes within your Microsoft Access projects, you must Add the source code File for the Classes to your project, because the Entisoft Linker program does not support the direct extraction of the data structure Classes from Entisoft Tools. 1. In Microsoft Access 2000, press {F11} to go to the Visual Basic Editor. In Microsoft Access 97, you can skip this step, since the Visual Basic Editor is invoked automatically when creating a new Class Module. 2. Choose the Class Module item from the Insert menu to insert a new Class Module. 3. Remove the "Option Compare Database" statement and possibly the "Option Explicit" statement lines, as this Class file you are about to load already has those statements. (This step only applies when loading Class Modules into Microsoft Access.) 4. Choose the File... item from the Insert menu to insert a file into this new Class. 5. Locate the source code for the Class and press the Open button to insert it into the new Class. The source code is located in C:\Program Files\Entisoft\Tools\v2.0, assuming that you installed Entisoft Tools Professional Edition to its default location. 6. Remove the following statements from the beginning of the Class module:

    VERSION 1.0 CLASS
    BEGIN
      MultiUse = -1  'True
      Persistable = 0  'NotPersistable
      DataBindingBehavior = 0  'vbNone
      DataSourceBehavior = 0   'vbNone
      MTSTransactionMode = 0   'NotAnMTSObject
    End
Microsoft Access Compatibility Note: The source code version of these data structure Classes are not compatible with versions of Microsoft Access prior to Microsoft Access 97, because they do not support the hosting of Class-type Modules.

Using the Source Code version of data structure Classes in your Microsoft Excel projects: (This help topic only applies to Entisoft Tools Professional Edition users.) Follow the same procedure as described above to load the Classes into Microsoft Access projects.
Microsoft Excel Compatibility Note: The source code version of these data structure Classes are not compatible with versions of Microsoft Excel prior to Microsoft Excel 97, because they do not support the hosting of Class-type Modules.

Using the Source Code version of data structure Classes in your Microsoft Outlook projects: (This help topic only applies to Entisoft Tools Professional Edition users.) Follow the same procedure as described above to load the Classes into Microsoft Access projects.
Microsoft Outlook Compatibility Note: We are unsure if the source code version these data structure Classes are compatible with versions of Microsoft Outlook prior to Microsoft Outlook 2000.

Using the Source Code version of data structure Classes in your Microsoft Word projects: (This help topic only applies to Entisoft Tools Professional Edition users.) Follow the same procedure as described above to load the Classes into Microsoft Access projects.
Microsoft Word Compatibility Note: The source code version of these data structure Classes are not compatible with versions of Microsoft Word prior to Microsoft Word 97, because they do not support the hosting of Class-type Modules.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.