VpeSetFieldToNull

<< Click to Display Table of Contents >>

Navigation:  Field >

VpeSetFieldToNull

Previous pageReturn to chapter overviewNext page

Assigns a null-value to a field. A field has a null-value after calling VpeClearTplFields or after explicitly assigning a null-value to a Field by either calling VpeSetFieldToNull or VpeSetTplFieldToNull.

int VpeSetFieldToNull(

VpeHandle hField

)

VpeHandle hField

Field Handle

Returns:

Value

Description

True

the null-value was assigned successfully to the field

False

the null-value was not assigned successfully to the field

Remarks:

A null-value is a special value, like in SQL databases. An empty string or an integer / double / date with the value zero are not null-values.

 

In string expressions a null-value is treated like an empty string. In numeric or date expressions, a null-value is treated like a zero.

 

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

 

See Also:

"dycodoc Template Processing" in the Programmer's Manual