Harbour Reference Guide

 

ADSKeyCount()

Retrieve the number of keys in a specified index

Syntax

ADSKeyCount([<xTag>], <cIgnoredIndexFile>, [<nFilterOption>]) --> nKeyCount

Arguments

<xTag> Numeric order number OR index tag name. Default is current index.

<cIgnoredIndexFile> This parameter is not processed. In other Harbour RDDs, the second parameter to "ordKeyCount" takes a second argument to identify a particular Index File in cases where two files are open that contain orders with the same name. The ADS driver does not support this and will select the first order with the requested name. To stay consistent with other RDDs, therefore(),the second parameter is reserved and the <nFilterOption> is passed as a third parameter.

<nFilterOption> Indicates if filters and/or scopes are to be respected if set.

Options are defined in ads.ch:

ADS_RESPECTFILTERSRespect filters and scopes
ADS_IGNOREFILTERSIgnore filters and scopes
ADS_RESPECTSCOPESRespect scopes only

Returns

<nKeyCount> The number of keys within the current index.

Description

See ACE.HLP for full details about the Advantage Database Server.

Status

Ready

Compliance

Harbour extension

Platforms

Windows 32-bit

Files

Library is RddAds Header is ads.ch

See Also

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30