Setobjecttype, Oc.setobjecttype, C.setobjecttype "d – Kofax DM API User Manual

Page 292: C.setobjecttype, Method

Advertising
background image

272 C

HAPTER

4

SetObjectType

SetObjectType

Use this method to set the object type. For

PCDDocObject

and

PCDGetForm

the object is a form available to the user.

Syntax

PCDDocObject.SetObjectType( strObjectType )

PCDGetForm.SetObjectType( strObjectType )

PCDPropertyLists.SetObjectType( strObjectType )

Parameter

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.

Usage

This routine must be called before you call any of the following
methods:

Create
Fetch
Update

Example

The

Example

in the discussion of the

PCDGetStream

object illustrates

how you can use SetObjectType in your custom applications.

Related Items

See the following objects:

PCDDocObject
PCDGetForm

strObjectType

A string (

BSTR) variable that identifies the object

type that the method is to use.

Advertising