AsBoolean Property

The AsBoolean property provides access to the object as to a Boolean variable.

Applies to objects: Field, Property.

Syntax

[[Let] RetVal = ] object.AsBoolean

[Let] object.AsBoolean = SetVal

The AsBoolean property syntax has these parts:

Part Description
object Required. A reference to an instance of the object.
RetVal Optional. A Boolean type variable.
SetVal Required. A Boolean type variable.

Remarks

There are also the AsDouble, AsLong and AsString properties, which treat an object as a Double, Long or String variable respectively.

Example

.......

 

See Also

Field Object, Property Object, AsDouble Property, AsLong Property, AsString Property.