Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SIx Driver RDD v3.00 - Reference Guide - <b>set tag to:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  SET TAG TO:
  SET ORDER TO:

  Syntax:

  SET TAG TO [<tagname> [OF <indexname>]]
  SET ORDER TO [TAG <tagname> [OF <indexname>]]

  TAG <tagname> specifies the name of the tag to set the order to.  If a
  .CDX/.NSX file is not specified, then the open .CDX's are searched for the
  tag in the order that they were opened.  Once the tag is found, the order
  is set to its .CDX/.NSX file, and control is given to the tag specified.

  OF <cdxname> specifies which .CDX/.NSX file contains the specified tag.
  This is used to eliminate any conflicts between two .CDX's that may each
  have a tag of the same name.  Order is set to the specified .CDX/.NSX, and
  specified tag is given control.

  If no tagname is specified, then order is set to 0 (record # order).
  For example:

      SET ORDER TO
  and
      SET TAG TO

  are both equivalent to:

      SET ORDER TO 0


    NOTE:  The SET TAG and SET ORDER TO TAG commands are NOT supported
           under SIXNTX.  SET ORDER TO is supported as it is under DBFNTX.


  Example:


    // Assuming TEST.DBF has a TEST.CDX file with two tags, AGE and STATE

    #include "SIXCDX.CH"

    USE test VIA "SIXCDX"     // Open TEST.DBF and TEST.CDX
    SET TAG TO age            // Selects the AGE tag

    INDEX ON last TO last     // Create a new LAST.IDX file at the end of the
                              // order.  In this case, it's in order 3.  The
                              // two tags in TEST.CDX (AGE and STATE) are
                              // orders 1 and 2.

    SET ORDER TO 2            // Selects the STATE tag from within TEST.CDX

    SET TAG TO age            // Selects the AGE tag within TEST.CDX

    SET ORDER TO 3            // Selects LAST.IDX, which was in order 3



See Also: Sx_SetTag() Sx_SetTagNo() Sx_OrdSetFocus()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson