C5_ORDNAME

 ORDNAME()
 Return the name of an order in the order list
------------------------------------------------------------------------------
 Syntax

     ORDNAME(<nOrder>[,<cOrderBagName>]) --> cOrderName

 Arguments

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

     <cOrderBagName> is the name of a disk file containing one or more
     orders.  You may specify <cOrderBagName> as the file name with or
     without the path name or appropriate extension.  If you do not include
     the extension as part of <xcOrderBagName>, Clipper uses the default
     extension of the current RDD.

 Returns

 ORDNAME() returns the name of the specified order in the current order list
 or the specified order bag if opened in the current order list.
------------------------------------------------------------------------------
 Description

     ORDNAME() is an order management function that returns the name of the
     specified order in the current order list.

     If <cOrderBagName> is an order bag that has been emptied into the
     current order list, only those orders in the order list that correspond
     to <cOrderBagName> order bag are searched.

     The active RDD determines the order capacity of an order bag.  The
     default DBFNTX and the DBFNDX drivers only support single-order bags,
     while other RDDs may support multiple-order bags (e.g., the DBFCDX and
     DBPX drivers).

     Note:  ORDNAME(0) works as ORDNAME(INDEXORD()).

 Examples

     .  This example retrieves the name of an order using its position
        in the order list:

        USE Customer NEW
        SET INDEX TO CuAcct, CuName, CuZip
        ORDNAME(2)                     // Returns: CuName

     .  This example retrieves the name of an order given its position
        within a specific order bag in the order list:

        USE Customer NEW
        SET INDEX TO Temp, Customer
        // Assume Customer contains CuAcct, CuName, CuZip
        ORDNAME(2, "Customer")      // Returns: CuName

See Also: ORDFOR() ORDKEY() ORDNUMBER()



One response to “C5_ORDNAME

  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.