ChkLastDCOType

Checks that the Type property of the Document Hierarchy's previous object is identical to the type entered as the parameter.

Syntax

bool ChkLastDCOType (StrParam)

Parameters

The previous object's DCO Type to compare. Smart parameters are supported.

Returns:

True, if the Type property of the Document Hierarchy's previous object matches the parameter. Otherwise, False.

Level

All.

Details

Checks that the Type property of the Document Hierarchy's previous object is identical to the type entered as the parameter. You can use this action to test the last DCO Type that is encountered so you can take specific subsequent steps that are based on that type.

The example is applied at the Page level and checks to see whether the previous Page object's type matches the parameter (Separator).

Example:
ChkLastDCOType(Separator)
SetPageType(Invoice)
SetPageStatus(1)      

Applied at the Page level, this sequence checks to see whether the previous Page object was a Separator page. If so, the type of the current page is set to Invoice, and its status is set to "1". If the previous document type was not a separator, the subsequent actions do not execute.