NullStrictConvert

What to do when converting Null to another type

Declaration

Source position: variants.pp line 278

var
  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

Name Description
NullAsStringValue String value to use when converting a Null to a string.
VarCastError Raise a variant type cast error EVariantTypeCastError