VistaDB 5






VistaDB.DDA Namespace > IVistaDBTable Interface > SetScope Method : SetScope(IVistaDBRow,IVistaDBRow) Method
The row(compound key) before the first available row(compound key) in active index
The row(compound key) after the last available row(compound key) in active index
SetScope(IVistaDBRow,IVistaDBRow) Method
Set scope on active index to apply filter on the number of rows. The columns referenced in the scope operators must be present in the active index for them to work correctly.
Syntax
'Declaration
 
Overloads Sub SetScope( _
   ByVal lowKey As IVistaDBRow, _
   ByVal highKey As IVistaDBRow _
) 
'Usage
 
Dim instance As IVistaDBTable
Dim lowKey As IVistaDBRow
Dim highKey As IVistaDBRow
 
instance.SetScope(lowKey, highKey)
void SetScope( 
   IVistaDBRow lowKey,
   IVistaDBRow highKey
)
procedure SetScope( 
    lowKey: IVistaDBRow;
    highKey: IVistaDBRow
); 
function SetScope( 
   lowKey : IVistaDBRow,
   highKey : IVistaDBRow
);
void SetScope( 
   IVistaDBRow* lowKey,
   IVistaDBRow* highKey
) 
void SetScope( 
   IVistaDBRow^ lowKey,
   IVistaDBRow^ highKey
) 

Parameters

lowKey
The row(compound key) before the first available row(compound key) in active index
highKey
The row(compound key) after the last available row(compound key) in active index
Remarks
If lowKey or highKey passed as null reference, the ResetScope executed
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