CAS 6


mapcount
- Text

Summary

Count character maps within a string. A 'map' is a consecutive string of the same character. For example, The string '011122210011' contains three '1' maps, and one '2' map.

Examples

mapcount '01112221011' '1'
mapcount '01112221011' '2'
mapcount PAYHIST '1'

Syntax

mapcount TextField CountChar

Right Arguments

Name Data Type Input Type Description Optional Default
TextField Text Field, Constant No
CountChar Text Field, Constant No

Result

Type: Numeric

Number of character maps



Build 6.0.624