This method returns an array containing the registry key root for each installed Raiser’s Edge database.
Check the registry root of the first installed Raiser's Edge database Debug.Print moREAPI.GetAvailableRegistryKeys(1)
Note: The API object does not need to be initialized to access this method.
If you have multiple Raiser’s Edge databases installed with API support, you can use this method to present the end-user with a list of available databases.
For example, the following code populates a combo box with a list of available Raiser’s Edge databases (this is not the complete code for the form):
Private Sub UserForm_Initialize()
Dim lCntr As Long
Dim vDatabases As Variant
'Create an instance of The Raiser's Edge 7 API
Set moREAPI = New REAPI
'Get a list of available RE7 databases
vDatabases = moREAPI.GetAvailableRegistryKeys
'Load a combo with the available choices
For lCntr = 1 To UBound(vDatabases)
Tip: Once you have access to the Registry Key, you can extract descriptive information from the registry. to display for your end-user. The registry key will be returned as \Software\Blackbaud\REINI_## where ## is the Database ID number.Three useful keys are:
The Raiser’s Edge sample database
Disclaimer: We provide programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes you are familiar with Microsoft Visual Basic and the tools used to create and debug procedures. Our Customer Support can help explain the functionality of a particular procedure, but we will not modify, or assist you with modifying, these examples to provide additional functionality. If you are interested in learning more about the VBA and API modules, contact your account manager.