TextLength Property (Selection Object)
Retrieves the length of the selected text. If the length exceeds 0x7fffffff in UTF-16 characters, the property is truncated to that length. Supported in EmEditor Professional Version 26.1 or later.[JavaScript]
len = document.selection.TextLength;
[VBScript]
len = document.selection.TextLength
Version