VistaDB 5






VistaDB.DDA Namespace > IVistaDBTable Interface > Find Method : Find(IVistaDBRow,String,Boolean,Boolean) Method
Compound key value to find
Index to use for the operation (must already exist)
Try to find using partial matching if exact match is not found
Try to position the current row pointer to the row after a non found key. This is where the row would have if it had existed.
Find(IVistaDBRow,String,Boolean,Boolean) Method
Find the key in index and set found row as current
Syntax
'Declaration
 
Overloads Function Find( _
   ByVal key As IVistaDBRow, _
   ByVal indexName As System.String, _
   ByVal partialMatching As System.Boolean, _
   ByVal softPosition As System.Boolean _
) As System.Boolean
'Usage
 
Dim instance As IVistaDBTable
Dim key As IVistaDBRow
Dim indexName As System.String
Dim partialMatching As System.Boolean
Dim softPosition As System.Boolean
Dim value As System.Boolean
 
value = instance.Find(key, indexName, partialMatching, softPosition)
System.bool Find( 
   IVistaDBRow key,
   System.string indexName,
   System.bool partialMatching,
   System.bool softPosition
)
function Find( 
    key: IVistaDBRow;
    indexName: System.String;
    partialMatching: System.Boolean;
    softPosition: System.Boolean
): System.Boolean; 
function Find( 
   key : IVistaDBRow,
   indexName : System.String,
   partialMatching : System.boolean,
   softPosition : System.boolean
) : System.boolean;
System.bool Find( 
   IVistaDBRow* key,
   System.string* indexName,
   System.bool partialMatching,
   System.bool softPosition
) 
System.bool Find( 
   IVistaDBRow^ key,
   System.String^ indexName,
   System.bool partialMatching,
   System.bool softPosition
) 

Parameters

key
Compound key value to find
indexName
Index to use for the operation (must already exist)
partialMatching
Try to find using partial matching if exact match is not found
softPosition
Try to position the current row pointer to the row after a non found key. This is where the row would have if it had existed.

Return Value

Operation status. If the key is not found, the current row position is set to the bottom of the table and EndOfTable flag is set. True will set current row to the first found entry.
Remarks
Find may not be used on FTS indexes
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