en:count [BASIC 256 - Language Documentation]

# BASIC 256 - Language Documentation

en:count

## Count (Function)

### Format

count ( haystack_expr , needle_expr )
count ( haystack_expr , needle_expr , boolean_expr)

returns positive_integer_value

### Description

Return the count of the string needle in the string haystack. You may also specify an optional third value, a boolean value to specify that the search will treat upper and lower case letters the same.

### Example

    print count("Hello", "lo")
    print count("Buffalo buffalo buffalo.","BUFFALO",true)

will display

    1
    3

### See Also

Asc, Chr, Count, Countx, Explode, Explodex, Implode, Instr, Instrx, Left, Length, Lower, MD5, Mid, Midx, Replace, Replacex, Right, String, Upper

### History

0.9.6.55 | New to Version

en/count.txt · Last modified: 2014/02/09 20:46 by admin