char as word boundary

Paul Dupuis paul at researchware.com
Mon Jun 13 13:41:15 EDT 2022


On 6/13/2022 12:13 PM, Mark Waddingham via use-livecode wrote:
> Hypercard and livecode 6.7:  the number of chars (numtochar(32)&
> numtochar(202)&numtochar(32)& numtochar(202)&numtochar(32)) = 2
> livecode 9.67                      :   the number of chars
> (numtochar(32)& numtochar(202)&numtochar(32)&
> numtochar(202)&numtochar(32)) = 0 

LC 9.6.7 STABLE (Win 10)
put the number of chars of (numtochar(32) & numtochar(202) & 
numtochar(32) & numtochar(202) & numtochar(32))   -> results in 5 in the 
message box, exactly as it should. The number of words (of the same 
string) is 2

LC 6.7.11 STABLE (Win 10)
put the number of chars of (numtochar(32) & numtochar(202) & 
numtochar(32) & numtochar(202) & numtochar(32))   -> ALSO results in 5 
in the message box, exactly as it should. The number of words (of the 
same string) is 2

Or. at least those are the results I am getting, and I think that may be 
because numToChar(202) is a different character on macOS vs Windows.




More information about the use-livecode mailing list