RDD

OrdKeyVal()

Return the current key value

Syntax

Signature
OrdKeyVal() --> uKeyValue

Arguments

None.

Return value

Key value of the current record in the controlling order.

Description

OrdKeyVal() evaluates the controlling order's key for the current record and returns it.

Notes

A controlling order must be active.

Example

OrdKeyVal.prg
PROCEDURE Main()

   DbUseArea( .T., , "people.dbf", "People" )
   QOut( "Key value: " + ValType( OrdKeyVal() ) )
   DbCloseArea()

RETURN

Output

See also