Return the position of an order in the current order list

     ORDNUMBER(<cOrderName>[, <cOrderBagName>]) --> nOrderNo


     <cOrderName> the name of the specific order whose position in the
     order list 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 <cOrderBagName>, Clipper uses the default
     extension of the current RDD.


     ORDNUMBER() returns an integer that represents the position of the
     specified order in the order list.


     ORDNUMBER() is an order management function that lets you determine the
     position in the current order list of the specified order.  ORDNUMBER()
     searches the order list in the current work area and returns the
     position of the first order that matches <cOrderName>.  If
     <cOrderBagName> is the name of an order bag newly emptied into the
     current order list, only those orders in the order list that have been
     emptied from <cOrderBagName> are searched.

     If <cOrderName> is not found, ORDNUMBER() raises a recoverable runtime

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


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


One response to “C5_ORDNUMBER

  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.