Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Comix 3.0 Reference Manual - <b>ordsetfocus()</b> make the specified index the master index http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ordSetFocus()         Make the specified index the master index
------------------------------------------------------------------------------

Synopsis

    ordSetFocus( [nOrder] | [cTag [, cBag]] ) -> cPrevTag

Arguments

    nOrder, cTag and cBag are optional parameters which specify the index.
    If omitted the master index will remain unchanged,

    nOrder is the numeric order of the index.

    cTag is the tag of the index, and cBag is the specific index file in
    which to find cTag.

Returns

    ordSetFocus() returns a character string which is the tag of the
    previous master index.

Description

    ordSetFocus() makes the index with the specified tag or order the master
    index.  ordSetFocus() supersedes the dbSetOrder() function because it
    can take either a numeric argument or a tag name.  (Please note however
    that dbSetOrder() still works).

Example

    use demo

    index on last tag last
    index on first to first

    ? ordNumber()                       && Returns 2

    ordSetFocus("last")
    ? ordNumber()                       && Returns 1

    ordSetFocus("first")
    ? ordNumber()                       && Returns 2

    ordSetFocus("notThere")
    ? ordNumber()                       && Returns 0

See Also

    SET ORDER TO TAG


See Also: SET ORDER TO TAG

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