Welcome to the Indigo Rose Software discussion forums! You will need to sign up for a forum account and login before you can post. Need help? View the Forum FAQ.
You can also employ the unary # symbol for this, telco. It's the standard length operator used in native Lua,. And will return the number of bytes in a given string. Is a slightly cleaner, more efficient way to do it:
Code:
local n = #(Paragraph.GetText("Paragraph1"));
Dialog.Message("", n);
Comment