COUNT

COUNT


COS Index Level CRT
Syntax COUNT( string.expression1, string.expression2 )
Category BASIC
Type Function
Description returns the number of occurrences of "string.expression2" within "string.expression1".
Options
See Also statements & functions string.expression string expressions OCCURS PROCREAD functions FOLD DCOUNT
Example sentence = "sam is home alone"
print count(sentence,' ')

This displays the number of spaces in the string held in the variable "sentence", which is equal to 3.
Warnings
Compatibility D3 7.0 AP R83
COS Index Level CRT