RDD

OrdFor()

Return the FOR expression of an order

Syntax

Signature
OrdFor( cOrderName | nOrder, [cOrderBagName] ) --> cForExp

Arguments

Order name or number and optional order-bag file.

Return value

FOR expression text, or an empty string when none is defined.

Description

OrdFor() returns the condition stored with the selected order.

Notes

The order must exist in the current order list.

Example

OrdFor.prg
PROCEDURE Main()

   DbUseArea( .T., , "people.dbf", "People" )
   QOut( "FOR: " + OrdFor( 1 ) )
   DbCloseArea()

RETURN

Output

See also