Pcdgetloginlibs, Ew pcdgetloginlibs – Kofax DM API User Manual

Page 76

Advertising
background image

56

C

HAPTER

3

PCDGetLoginLibs

PCDGetLoginLibs

Use this object to get a list of available logon libraries from the DM
Server. This is a list of the libraries configured in DM Server Manager,
and they are obtained from a PCDOCS.INI file in the system.

Syntax

PCDGetLoginLibs.

methodOrProperty

Usage

This object allows you to determine which libraries are available for use
by a user. Users can log on to any libraries this object returns. You also
use it to select the current working library.

Example

The following example assembles the libraries available to the current
user and puts them into a ListBox.

.

.

.

Dim objGetLibs As New PCDGetLoginLibs


Dim LNumOfLibs As Long

Dim strLibName() As String

Dim LCounter

Dim lstLibList As New ListBox


'Set the DST.

objGetLibs.SetDST strDST


' Get a list of libraries available to the user.

objGetLibs.Execute

If (objGetLibs.ErrNumber <> 0) Then

' Error occurred. Process it as appropriate.

End If


'Get the number of libraries.

LNumOfLibs = objGetLibs.GetSize - 1

Advertising