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

     NUMCOUNT([<nIncrement|nStartValue>,[<lMode>]])
         --> nNewCounterValue

 Arguments

     <nIncrement|nStartValue>  Designates the incremental value for the
     internal counter or a new starting value.

     <lMode>  Designates whether <nIncrement|nStartValue> is a new
     starting value (.T.) or an increment (.F.).  The default is increment
     (.F.).

     () Without parameters, the current counter value is returned.

 Returns

     When called without parameters, this function returns the current
     counter value; otherwise, it always returns the new counter value.

 Description

     Always increment count variables and retain the current status when you
     program counting events.  Use NUMCOUNT() to simplify this process.  When
     you call NUMCOUNT(), the internal counter is increased and the new
     counter status is returned to the calling program.  The count variable
     is then queried and actualized in one step.

 Example

     Data is not output with line numbers, but with a running counter:

     NUMCOUNT(0, .T.)      // Set 0 as a starting value..
     LIST OFF NUMCOUNT(1), CUST FOR REBATE


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