key Property

Class: Column

Description

If the column is a key, this property indicates the key position in the table (e.g., in the HIST table, the TSEQ column is the second key).

Syntax

table.column.key

Parameters

None

Returns

A numeric value representing the key position of the column/key.

When Became Available

v6.0

Example

type RecordHIST hist

set hist = Db.getRecord(“HIST”,”CID=:CID,TSEQ=:TSEQ”)

set TSEQKEY = hist.tseq.key

____________________________________________________________

TSEQKEY has a value of 2.

 

* Variables CID and TSEQ must be defined prior to the

getRecord statement.