How to find true words that start with a capital letter?

Alex Tweedly alex at tweedly.net
Fri Oct 26 14:07:40 EDT 2018


You say "... containing A-Z"

Are you really using unicode ? Or is it really just ASCII ?

if so, you could do

    put char 1 of tWord into temp
    if 65 <= temp AND temp <= 90 then ...

Alex.



On 26/10/2018 12:21, Keith Clarke via use-livecode wrote:
> Folks,
> What is the most efficient way to search for trueWords starting with a capital letter?
>
> Is there anything more direct than something like...
>
> repeat for each true word tWord in tContainer
>
> 	If char 1 of tWord is among the codePoints of tUnicodeLetters // a variable containing A-Z
> 	then put tWord into tCapitalised
>
> end repeat
>
> Thanks & regards,
> Keith
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list