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>ordnumber()</b> get the number of an index http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ordNumber()           Get the number of an index
------------------------------------------------------------------------------

Synopsis

    ordNumber( [cTag [, cBag]] ) -> nOrder

Arguments

    cTag and cBag are optional parameters which specify the index.  If
    omitted, the current master index will be used.

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

Returns

    ordNumber() returns the numeric order of the index with the given tag. 
    It returns 0 if no index in the current workarea has that tag.

Description

    ordNumber() allows you to convert tag names to index orders.

Example

    use demo

    ? ordNumber("last")                 && Returns 0

    index on last tag last
    index on first tag first
    index on age to age

    ? ordNumber("last")                 && Returns 1
    ? ordNumber("age")                  && Returns 3

    delete tag last

    ? ordNumber("last")                 && Returns 0 (non-existent)
    ? ordNumber("age")                  && Returns 2

See Also

    ordName()


See Also: ordName()

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