[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Variants' (#rtl)

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

VarCastError

  

Raise a variant type cast error EVariantTypeCastError

NullAsStringValue

  

String value to use when converting a Null to a string.


Documentation generated on: May 14 2021