System.Variants.NullMagnitudeRule

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

NullMagnitudeRule: TNullCompareRule = ncrLoose;

C++

extern DELPHI_PACKAGE TNullCompareRule NullMagnitudeRule;

Properties

Type Visibility Source Unit Parent
variable public
System.Variants.pas
System.Variants.hpp
System.Variants System.Variants

Description

Specifies rule for Null variant magnitude comparison.

NullMagnitudeRule determines the rule for handling magnitude comparisons (one value is greater than, greater than or equals, less than, or less than or equals to another) when one of the values compared is a variant containing a null value. NullMagnitudeRule can have the following values:



Constant Meaning

ncrLoose

(Default.) A variant containing a null is treated as a unique value that is less than any other value, but equal to another variant containing a null.

ncrStrict

A magnitude comparison of a variant containing a null is always false, regardless of the other value.

ncrError

A magnitude comparison raises an EVariantInvalidNullOpError if either value is a variant containing a null.



See Also