Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>numcount()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
NUMCOUNT()

Syntax:     NUMCOUNT([<expN>][,<expL>])

Arguments:  <expN> corresponds to the increment for the internal counter
            or a new string value.
            <expL> denotes whether <expN> is  the new starting value
            (.T.) or an increment (.F.).  (.F.) is assumed if no argument
            <expL> is passed.

Returns:    A numeric value.
            If the function is called without an argument, it will return the
            current value of the counter.  Otherwise, it will return the
            value of the new counter.

Usage:      NUMCOUNT() can greatly simplify a count variable when it is
            required to change the counter and hold its present status.
            The internal counter is increase by <expN> and then the
            result is returned.  The determination an incrementation of
            the count variable is executed in one operation.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * Data is listed with line numbers so a running
            * counter will be used.  A FOR clause is used so
            * RECNO() cannot be used for the line number.
            NUMCOUNT(0,.T.)             && Set 0 as starting value

            LIST OFF NUMCOUNT(1), CLIENT FOR REBATE




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