Navigation:  thinBasic Modules > STAT >

Stat_Count

Previous pageReturn to chapter overviewNext page

 

Description

 

Returns the number of occurrences of a specific number inside a given array.

 

Syntax

 

n = STAT_Count(ArrayVariable, MyNumber)

 

Returns

 

Number. The number of occurrences of MyNumber inside ArrayVariable.

 

Parameters

 

Name

Type

Optional

Meaning

ArrayVariable

Numeric Array

No

The array containing data

MyNumber

Number

No

A numeric expression representing the number you want to count

 

Remarks

 

This function will expect the name of a predefined array with all the necessary data already loaded.

 

Restrictions

 

See also

 

Examples

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com