prevKey Method

This method has been deprecated and should not be used in Profile versions v6.4 and above. Use the ResultSet.next or DbSet.next method on an appropriate, ordered selection.

Class: Db

Description

This method traverses a table in reverse collating order.

Syntax

Db.prevKey(literal table,KeyExpr)

Parameters

literal table

The table name on which to perform the operation.

KeyExpr

The variables that represent all the keys into the table.

Returns

The value of the key that occurs prior to the last key provided in KeyExpr.

When Became Available

v6.4

Example

while num > cnt set cid = Db.prevKey("ACN","cid")quit:cid=""

set num = num - 1