AsBoolean

<< Click to Display Table of Contents >>

Navigation:  Field Object >

AsBoolean

Previous pageReturn to chapter overviewNext page

Sets / returns the value of a Field as boolean.

property Boolean [integer] TVPEField.AsBoolean

read / write; runtime only

Remarks:

In case of an error, an exception is thrown (for example out of memory or the field contained pure text that could not be converted to an boolean value).

 

The Template Object itself offers simple methods to access a Field's value directly, i.e. without retrieving a Field Object first. See GetFieldAsBoolean and SetFieldAsBoolean.

 

See also:

"dycodoc Template Processing" in the Programmer's Manual