Getpropertyindex – Kofax DM API User Manual

Page 227

Advertising
background image

DM API M

ETHODS

AND

P

ROPERTIES

207

GetPropertyIndex

Example

This sample code demonstrates the GetPropertyIndex call on the

PCDPropertyList

object. The form accepts the property name as the

input value, and it returns the zero-based index of that property.

Private Sub cbGetIndex_Click()

Dim nResult As Long

Dim nIndex As Long

Dim nSize As Long

Dim sPropName As String

sPropName = txtPropertyName.Text

If sPropName = "None" Then

MsgBox "Please enter a property before " _

& "trying to retrieve the index."

Else

nSize = oIndexFormProps.

GetSize

()

If nSize > 0 Then

Advertising