Addproperty, Addproperty 137 – Kofax DM API User Manual

Page 157

Advertising
background image

DM API M

ETHODS

AND

P

ROPERTIES

137

AddProperty

AddProperty

Use this method to add a property/value pair to a property value list.

Syntax

PCDPropertyList.AddProperty( strPropName, _

vntPropVal )

Parameters

Returns

Returns an

HRESULT

to receive the result of the call.

S_OK

indicates

success. Languages such as JavaScript, Visual Basic, and VBScript
return this as a function value.

Example

The

Example

for the

PCDLookup

Object uses the AddProperty

method.

Related Items

See the

PCDPropertyList

object.

See the following methods:

DeleteProperty
GetPropertyIndex

See the following properties:

ErrDescription
ErrNumber

strPropName

The string that identifies the name of the
property to add to the list.

vntPropVal

The

VARIANT that contains the value of the

property that is to be added to the list.

Advertising