System.VarUtils.VarCmp

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

VarCmp: function(const Left, Right: TVarData; LCID: Integer; Flags: Cardinal): HRESULT; stdcall;

C++

extern DELPHI_PACKAGE HRESULT __stdcall (*VarCmp)(const TVarData &Left, const TVarData &Right, int LCID, unsigned Flags);

Properties

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

Description

VarCmp is a variable used to specify the function that compares two variants.

Use VarCmp to specify the function that compares two variants, given through the Left and Right parameters. The LCID parameter is a locale identifier and Flags specifies the flags used in the comparison.

VarCmp returns the result of the comparison, which can be one of the following.



Result Meaning

VAR_CMP_LT

Left is less than Right

VAR_CMP_EQ

Left is equal to Right

VAR_CMP_GT

Left is greater than Right

VAR_CMP_NULL

Either one of Left or Right is nil.