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() //Return Custumer
Tests
See Examples
- Status
- Started
- Compliance
-
- This function is Ca-Clipper compliant
- Platforms
-
- All
- Files
-
- Library is rdd
- See Also