RDD

OrdDestroy()

Remove an order from an order bag

Syntax

Signature
OrdDestroy( cOrderName, [cOrderBagName] ) --> NIL

Arguments

cOrderName

Order name or position. cOrderBagName Optional bag file.

Return value

.T. when the order is removed; otherwise .F..

Description

OrdDestroy() removes the selected order from its order bag and current order list.

Notes

The operation changes the index file.

Example

OrdDestroy.prg
PROCEDURE Main()

   DbUseArea( .T., , "people.dbf", "People" )
   QOut( "Destroyed: " + IIF( OrdDestroy( "NAME" ), "YES", "NO" ) )
   DbCloseArea()

RETURN

Output

See also