basic.count Function/BASIC Program

basic.count

Command basic.count Function/BASIC Program
Applicable release versions: AP, R83
Category BASIC Program (486)
Description returns the number of occurrences of "string.expression2" within "string.expression1".
Syntax count(string.expression1,string.expression2)
Options
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.
Purpose
Related basic.statements
basic.string.expression
string.expressions
basic.occurs
basic.procread
basic.functions
basic.fold
basic.dcount