DL Logo

CosBoolean Functions

CosBooleanValue

Header: CosProcs.h:531

Description

Gets the value of the specified boolean object.

An exception is raised if obj has the wrong Cos type.

Related Methods

Syntax

ASBool CosBooleanValue(CosObj obj);

Parameters

obj
The boolean Cos object whose value is obtained.

Returns

The value of obj.

CosNewBoolean

Header: CosProcs.h:194

Description

Creates a new boolean object associated with the specified document and having the specified value.

Syntax

CosObj CosNewBoolean(CosDoc dP, ASBool indirect, ASBool value);

Parameters

dP
IN The document in which the boolean is used.
indirect
IN If true, it creates the boolean object as an indirect object, and sets the document ( dP) object's PDDocNeedsSave flag (see PDDocFlags). If false, it creates the boolean object as a direct object.
value
IN The value the new boolean object will have.

Returns

A Cos boolean object.