CA_ORDBAGNAME

 ORDBAGNAME()
 Return the order bag name of a specific order
------------------------------------------------------------------------------
 Syntax

     ORDBAGNAME(<nOrder> | <cOrderName>) --> cOrderBagName

 Arguments

     <nOrder> is an integer that identifies the position in the order
     list of the target order whose order bag name is sought.

     <cOrderName> is a character string that represents the name of the
     target order whose order bag name is sought.

 Returns

     ORDBAGNAME() returns a character string, the order bag name of the
     specific order.

 Description

     ORDBAGNAME() is an order management function that lets you access the
     name of the order bag in which <cOrderName> resides.  You may identify
     the order as a character string or with an integer that represents its
     position in the order list.  In case of duplicate names, ORDBAGNAME()
     only recognizes the first matching name.

     Note:  ORDBAGNAME(0) works as ORDBAGNAME(INDEXORD())

 Examples

     .  The following example uses ORDBAGNAME() with the default
        DBFNTX driver:

        USE Customer VIA "DBFNTX" NEW
        SET INDEX TO CuAcct, CuName, CuZip
        ORDBAGNAME(2)               // Returns: CuName
        ORDBAGNAME(1)               // Returns: CuAcct
        ORDBAGNAME(3)               // Returns: CuZip

     .  In this example, Customer.cdx contains three orders named
        CuAcct, CuName, CuZip:

        USE Customer VIA "DBFCDX" NEW
        SET INDEX TO Customer
        ORDBAGNAME("CuAcct")      // Returns: Customer
        ORDBAGNAME("CuName")      // Returns: Customer
        ORDBAGNAME("CuZip")      // Returns: Customer

See Also: ORDBAGEXT()



One response to “CA_ORDBAGNAME

  1. Pingback: C5DG-3 RDD Reference | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.