TrueValue Property

       

Sets or returns a value used to format and unformat Boolean True values. Read/write both at design time and run time.

Syntax

object.TrueValue [= value]

The TrueValue property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value Optional Variant. In the Format event, if the data is a Boolean True, value is returned; if TrueValue is empty, then the integer value 0 is returned. In the Unformat event, if TrueValue is empty and the value is 0, or if the data matches value, a Boolean True is written to the database. Defaults to True.

Remarks

Ignored unless the Type property is set to fmtBoolean. The TrueValue property is read each time data is fetched.