RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.NullMagnitudeRule Variable

Specifies rule for Null variant magnitude comparison.

Pascal
NullMagnitudeRule: TNullCompareRule = ncrLoose;
C++
TNullCompareRule NullMagnitudeRule = ncrLoose;

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.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!