Count uppercase or bold letters in Xojo

Hi,

I know that it’s very easy to count the number of uppercase letters or bold characters into a string

I know that it is relatively easy to count the number of uppercase or bold letters in other programming languages (eg. in Python). I’ve been checking the help in Xojo and searching for google but I haven’t found anything to help me know how to do it in Xojo. Would it be possible to count these types of characters from a text string?.

Thank you very much.

Best regards,
Sergio

You can do that in a Textarea with StyleRun.

http://documentation.xojo.com/api/text/stylerun.html

Thank you so much for the link Michel, this has been my starting point to investigate how to do it. I have also checked the example of Xojo called StyledText (into Text section).

Sergio