# ADSKeyNo()

Get the logical key number of the current record in the given index

Syntax

  ADSKeyNo([<xTag>], [<nFilterOption>]) --> nKeyNo

Arguments

  <xTag> Numeric order number OR index tag name. Default is current index.
  <nFilterOption> Indicates if filters and/or scopes are to be respected if set.

Returns

  <nKeyNo> The logical key number of the current record in the given index.

Description

  See ACE.HLP for full details about the Advantage Database Server.
  Wrapper for AdsGetKeyNum.
  This function may be slow on a large database with ADS_RESPECTFILTERS set because it walks through the keys to get the current position. Compare to ADSGetRelKeyPos().

Status

  Ready

Compliance

  Harbour extension

Platforms

  Windows 32-bit

Files

  Library is RddAds Header is ads.ch

See Also

- ADSKeyCount()
- ADSGetRelKeyPos()