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
};

Variants

TVariantRelationship describes the relationship between two 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 Variant does not equal an empty 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.  

 

VarCompareValue

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!