Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

ACOUNT( pTarget, aArray )

Purpose

Counts occurrences of an item in an array.

Arguments

     pTarget -- item to count

     aArray  -- array to search

Setup

None.

Returns

The number of occurrences of pTarget in aArray.

Side Effects

None.

Example

     LOCAL students := { "Mary", "John", "Mike", "Beth", "John" }
     ? ACOUNT( "John", students )         && Returns 2

Artful Calls

None.

Source File

AA_ACOUN.PRG

Notes

In order for a match to occur, the type of pTarget must match
the type of element(s) in aArray.

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