Set focus to an order in an order list

     ORDSETFOCUS([<cOrderName> | <nOrder>]
        [,<cOrderBagName>]) --> cPrevOrderNameInFocus


     <cOrderName> is the name of the selected order, a logical ordering
     of a database.  ORDSETFOCUS() ignores any invalid values of

     <nOrder> is a number representing the position in the order list of
     the selected order.

     <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.


     ORDSETFOCUS() returns the order name of the previous controlling order.


     ORDSETFOCUS() is an order management function that returns the order
     name of the previous controlling order and, optionally, sets the focus
     to an new order.

     If you do not specify <cOrderName> or <nOrder>, the name of the
     currently controlling order is returned and the controlling order
     remains unchanged.

     All orders in an order list are properly updated no matter what
     <cOrderName> is the controlling order.  After a change of controlling
     orders, the record pointer still points to the same record.

     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).

     Note:  ORDSETFOCUS() supersedes INDEXORD().


     USE Customer VIA "DBFNTX" NEW
     SET INDEX TO CuAcct, CuName, CuZip
     ? ORDSETFOCUS("CuName")      // Displays: "CuAcct"
     ? ORDSETFOCUS()              // Displays: "CuName"



One response to “C5_ORDSETFOCUS

  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.