prevVal Method

This method has been deprecated and should not be used in Profile versions v6.4 and above.

Class: Db

Description

This method returns the previous key value from the specified table.

Syntax

Db.prevVal(tableName,accessKeys)

Parameters

tableName

A valid database table name.

accessKeys

A comma-separated list of access keys for the table.

Returns

The previous key value.

When Became Available

v6.0

Example

set CID = Db.prevVal("DEP","XCID") // Deposit account before XCID

 

set ACN = Db.prevVal("HIST","CID,123") // History sequence

                                       // before 123