Count occurences, case sensitive?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Zax
Posts: 469
Joined: Mon May 28, 2007 10:12 am
Location: France
Contact:

Count occurences, case sensitive?

Post by Zax » Fri Aug 07, 2020 3:33 pm

Hello,

I'm using replaceText() function to replace some string with another in a text, case sensitive, and I would like to inform the user about how many replacements have been done. Or, at least, how many occurences will be found (and replaced).
All ...offset() functions I found are case insensitive. So, is there a simple way to do that?

Thank you.

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: Count occurences, case sensitive?

Post by Thierry » Fri Aug 07, 2020 4:36 pm

Zax wrote:
Fri Aug 07, 2020 3:33 pm
All ...offset() functions I found are case insensitive. So, is there a simple way to do that?
Bonjour Zax,

Check caseSensitive in the dictionary

Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

Zax
Posts: 469
Joined: Mon May 28, 2007 10:12 am
Location: France
Contact:

Re: Count occurences, case sensitive?

Post by Zax » Fri Aug 07, 2020 5:20 pm

Thierry wrote:
Fri Aug 07, 2020 4:36 pm
Check caseSensitive in the dictionary
Great! Merci Thierry :)

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”