TallyAny%

Takes two parameters, Source, Match

Description:

This command tallies the number of occurrences that any of the characters located in the Match parameter are located in the Source parameter, and returns the tally as an integer.

This is a similar command to TallyAny$, which returns the tally as a string.

Example:

[New] source = "abcda"
[New] match = "ab"

[New] results = TallyAny$ source, match

Html ("results: " & results) 'results is equal to 3