TwScript: TW.target.selectionLength;
Gives length of selection in TW.target, or 0 if no text is selected.
Created with the Personal Edition of HelpNDoc: Easily create iPhone documentation