String length: Difference between revisions
Content added Content deleted
Line 1,813: | Line 1,813: | ||
or |
or |
||
<lang LiveCode >put length("Hello World")</lang> |
<lang LiveCode >put length("Hello World")</lang> |
||
or |
|||
for Unicode character count use the code units keyword |
|||
<lang LiveCode >put the number of codeunits of "Hello World" -- count of unicode characters </lang> |
<lang LiveCode >put the number of codeunits of "Hello World" -- count of unicode characters </lang> |
||
===Byte Length=== |
===Byte Length=== |
||
Use the 'byte' keyword in LiveCode for an accurate unicode char byte count |
|||
<lang LiveCode>put the number of bytes in "Hello World" |
<lang LiveCode>put the number of bytes in "Hello World" </lang> |
||
=={{header|Logo}}== |
=={{header|Logo}}== |