I currently have to have two copies of a string around for counting, original case and lower case.Help wrote:#PB_String_CaseSensitive: case sensitive search (a=a) (default).
#PB_String_NoCase : case insensitive search (A=a).
Case insensitive CountString
Case insensitive CountString
Could CountString get the same Mode parameter as FindString please?
Re: Case insensitive CountString
spikey wrote: Wed Dec 03, 2025 5:25 pm Could CountString get the same Mode parameter as FindString please?I currently have to have two copies of a string around for counting, original case and lower case.Help wrote:#PB_String_CaseSensitive: case sensitive search (a=a) (default).
#PB_String_NoCase : case insensitive search (A=a).
In the meantime, this works without any duplication:
Code: Select all
Debug CountString(UCase("How many 'ow' contains Bow ?"), "OW") ; will display 3Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel 
Re: Case insensitive CountString
Of course, but it's an optimisation that it would be nice to have available and makes the two commands consistent.

