Advantage TDataSet Descendant
Retrieves the specified scope from the given index order.
type TAdsScopeOptions = ( soTOP, soBOTTOM );
function AdsGetScope( eScopeOption : TAdsScopeOptions ) : String;
|
eScopeOption |
Indicates which scope value to retrieve. |
AdsGetScope returns the indicated scope setting in the form of an index key. The value sent in a call to AdsSetScope was converted to a valid index key by the Advantage Client Engine. It may be necessary to convert the key to another form to make it useful. For example, when an application sets a scope on a date index, the Advantage Client Engine converts the date value to match the key data type. For a CDX or ADI index, this would be an 8-byte Julian date representation.
AdsTable1.Active := TRUE;
AdsTable1.IndexName := 'LastName' ;
AdsTable1.SetRange( ['Adams'], ['Smith'] );
strScopeValue := AdsTable1.AdsGetScope( soTop );
{strScopeValue equals 'Adams '}