RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variants.TVariantRelationship Enumeration

TVariantRelationship describes the results of comparing two Variants.

Pascal
TVariantRelationship = (
  vrEqual,
  vrLessThan,
  vrGreaterThan,
  vrNotEqual
);
C++
enum TVariantRelationship {
  vrEqual,
  vrLessThan,
  vrGreaterThan,
  vrNotEqual
};

TVariantRelationship describes the relationship between two System::Variant values. The following table lists the possible values:

Value 
Meaning 
vrEqual  
A is equivalent to B. Note that two NULL Variants are considered equal, and two empty Variants are considered equal, but a NULL System::Variant does not equal an empty System::Variant.  
vrLessThan  
A is less than B.  
vrGreaterThan  
A is larger than B.  
vrNotEqual  
A and B are not equal, but the values are such that they can't be ordered relative to each other. For example, this describes the relationship when either A or B is empty or NULL, and the other one is not.  

 

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