ORDBAGNAME()
Returns the Order Bag Name.
Syntax
ORDBAGNAME(<nOrder> | <cOrderName>) --> cOrderBagName
Arguments
<nOrder> A numeric value representing the Order bag number.
<cOrderName> The character name of the Order Bag.
Returns
ORDBAGNAME() returns the Order bag name
Description
This function returns the name of the order bag for the specified work area. If <nOrder> is specidied, it will represent the position in the order list of the target order. If <cOrderName> is specified, it will represent the name of the target order. In essence, it will tell the name of the database (if That Rdd is in use) for a given index name or index order number. If <cOrderName> is not specified or <nOrder> is 0, the Current active order will be used.
Examples
USE tests VIA "DBFCDX" NEW SET INDEX TO tests ORDBAGNAME( "TeName" ) // Returns: Customer ORDBAGNAME( "TeLast" ) // Returns: Customer ORDBAGNAME( "teZip" ) // Returns: Customer SET ORDER TO TAG TeName ? OrderBagName() // Returns: Custumer
Compliance
Clipper
Platforms
All
Files
Library is rdd
Seealso
INDEXORD(), ORDBAGEXT(), ALIAS()
Pingback: Harbour All Functions – O | Viva Clipper !
Pingback: Harbour Index / Order System Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !