Submit a ticketCall us

Training Class Getting Started with SolarWinds Backup - February 28

This course offers customers an introduction to SolarWinds Backup, focusing on configuring the backup technology, taking backups, data restoration and data security. It is a great primer and will get you up to speed quickly on SolarWinds Backup.
Register for class.

Home > Success Center > Kiwi CatTools > Kiwi CatTools 3.11 Administrator Guide > API > CatTools API Classes > CatTools DeviceTypes class > Sample Code to list Device Types in CatTools database

Sample Code to list Device Types in CatTools database

Table of contents
No headers
Created by Caroline Juszczak, last modified by Caroline Juszczak on Jun 28, 2016

Views: 123 Votes: 0 Revisions: 1

Sample VB code showing you how to list the Device Types found in your database using the CatTools API.


Dim DB As CatToolsAPI.Database

Dim DeviceTypes As CatToolsAPI.DeviceTypes

Dim DeviceType As CatToolsAPI.DeviceType


Set DB = New CatToolsAPI.Database


DB.EncryptionPassword = ""



If DB.Connected Then

Set DeviceTypes = DB.DeviceTypes

If Not DeviceTypes Is Nothing Then

Debug.Print DeviceTypes.Count & " device types in the database"

For Each DeviceType In DeviceTypes

Debug.Print "->" & DeviceType.Name




Msgbox "Error:" & DB.ErrDescription

End If


Msgbox "Connection failed: " & DB.ErrDescription

End If




Set DeviceType = Nothing

Set DeviceTypes = Nothing

Set DB = Nothing

Last modified