Sign in Join
FPDoc Onlineexperiment

NullStrictConvert variable

In unit Variants

What to do when converting Null to another type.

Declaration

pascal
NullStrictConvert: Boolean = True

Description

NullStrictConvert determines what to do when typecasting a Null value to another type: If it is True then an exception will be raised using VarCastError. If it is False then a sensible default is used: 0 or some variation on 0 based on the type of the variant. For string values the NullAsStringValue is used.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.