Edit.textlength readonly property
Get the length of the Edit text content, expressed as a number of characters.
Example
local ui = require "ui"
-- create a simple window
local win = ui.Window("Edit.textlength sample", "fixed", 520, 206)
local edit = ui.Edit(win, "", 10, 10, 500, 150)
-- set edit.properties
edit.font = "Times New Roman"
edit.fontsize = 12
edit.text = [[Abc]]
win:status("Total characters : "..edit.textlength)
win:show()
-- update user interface
repeat
ui.update()
-- update status bar if needed
if (edit.modified) then
win:status("Total characters : "..edit.textlength)
edit.modified = false
end
until not win.visible