VistaDB 6
VistaDB.DDA Namespace / IVistaDBRow Interface / CompareKey Method
The other key row to compare with


In This Topic
    CompareKey Method
    In This Topic
    Compare with another key row including their RowId values if necessary.
    Syntax
    'Declaration
     
    
    Function CompareKey( _
       ByVal key As IVistaDBRow _
    ) As System.Integer
    'Usage
     
    
    Dim instance As IVistaDBRow
    Dim key As IVistaDBRow
    Dim value As System.Integer
     
    value = instance.CompareKey(key)
    System.int CompareKey( 
       IVistaDBRow key
    )

    Parameters

    key
    The other key row to compare with

    Return Value

    Zero if rows are equal, -1 if this row is less, or 1 if this row is greater.
    Remarks
    Compare with another key row column by column taking ascending column information and RowId into account. The RowId is compared only if all key columns compare as equal (or if there are no key columns such as in a table's storage rowset).
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also