Kiwi CatTools API: Database class
The Database class is used to connect to the CatTools database. In doing so, this class also verifies your license. The database that the API connects to is the same as the one stored in your
|Version||The version of the
|Path||The database being accessed. This is evaluated from your .ini file.||Read Only|
The encryption password needed to decrypt the database.
The ID of the last error encountered.
The last error encountered.
Verifies the database is connected.
Opens a connection to the database as defined in your .ini file.
Closes the connection to the database.
A collection of the devices contained in the database.
Clears any error messages.
A collection of the device types contained in the database.
A collection of the groups contained in the database.
Example: Connect to a database using CatTools API
The following sample Visual Basic code showing you how to connect to your database using the CatTools API.
Dim DB As CatToolsAPI.Database Set DB = New CatToolsAPI.Database DB.EncryptionPassword = "MyPassword" If DB.OpenConnection Then MsgBox "Connected ok" Else MsgBox "DB connection failed: " & DB.ErrDescription End If DB.CloseConnection Set DB = Nothing