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>cmxautoorder()</b> get/set automatic order for structural index http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
cmxAutoOrder()        Get/set automatic order for structural index
------------------------------------------------------------------------------

Synopsis

    cmxAutoOrder( [nOrder] ) -> nPrevOrder

Arguments

    nOrder is an optional parameter.  If not provided, the current automatic
    order is returned without changing it.

    If nOrder is 0, then the database is left in natural order, even if
    a structural index is present and has been opened.

    If nOrder is 1 (the default), the first index in the structural
    index becomes the master index when the database is opened.

Returns

    cmxAutoOrder() returns the automatic order before the function was
    invoked.

Description

    cmxAutoOrder() gives you control over the master index which is in
    effect when a structural index is used.

    Normally this function is called only once at the start of your
    application.  The mode selected is in effect for all subsequent USE's.

Example

    use demo
    index on age tag age
    index on last tag last

    use demo
    ? ordNumber, ordName()      // 1, "age" (by default first tag is master)

    cmxAutoOrder(0)
    use demo
    ? ordNumber, ordName()      // 0, "" (now no index is master index when
                                // when the database is opened)

See Also

    cmxAutoOpen()


See Also: cmxAutoOpen()

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