Variants.NullStrictConvert

From RAD Studio VCL Reference
Jump to: navigation, search

C++ Information

From Variants.hpp

	bool NullStrictConvert;


Unit: Variants

Type: variable

Description

Specifies whether Null conversion is an error.


NullStrictConvert determines the outcome of attempts to convert Null variants to other types. If NullStrictConvert is true (default), attempting to convert a Null variant raises a EVariantTypeCastError, unless the conversion is to a custom variant that defines a conversion from Null. If NullStrictConvert is false, then conversion from Null follows the following rules:



Destination Conversion result

Numeric type

Zero

String type

Value of NullAsStringValue global variable. (Default: empty string.)

Boolean

False.



See Also

Personal tools
Translations
Newest Version