KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Retrieve the total number of times value is found in an array
PRODUCT: 4D | VERSION: 2004 | PLATFORM: Mac & Win
Published On: September 30, 2004

Starting in 4D 2004, you can obtain the total number of times that a value occurs in an array with just one single command. The name of the command is Count in array.

For example:

array{1}:=True
array{2}:=False
array{3}:=True
$result:=Count in array(array;True) ` $result = 2