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>cmxsetscope()</b> get/set top or bottom index scope http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
cmxSetScope()         Get/set top or bottom index scope
------------------------------------------------------------------------------

Synopsis

    cmxSetScope(nScope [, xValue] ) -> xPrev

Arguments

    nScope is the number of the scope to set for the current master index.
    0 specifies the top scope.  1 specifies the bottom scope.

    xValue is optional.  If specified, it can be either a fixed value _or_ a
    CodeBlock.

Returns

    cmxSetScope() returns the previous value of the scope.

Description

    cmxSetScope() is used to set the top or bottom scope value for the
    current master index.  This function is used to implement the SET SCOPE
    commands.

    See SET SCOPE for a discussion of scoping.

Example

    use demo
    set index to age

    cmxSetScope(0, 25)              && Make 25 the top scope
    cmxSetScope(1, 30)              && Make 30 the bottom scope
    list age                        && Will only see recs with age 25 .. 30

    cmxSetScope(1, 35)              && Change bottom scope to 35
    list age                        && Will only see recs with age 25 .. 35

    cmxClrScope(0)                  && Clear top scope
    list age                        && Now see all recs from start .. 35

    cmxClrScope(1)                  && Clear bottom scope
    list age                        && Now see all recs

See Also

    cmxClrScope(), SET SCOPE


See Also: cmxClrScope() SET SCOPE

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