CT_NUMCOUNT

 NUMCOUNT()
 Uses the internal 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

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.