Hi,
Just an another problem about how to detect the Length of selected text in an Editfield.


If I select an hole word like this: This is [my] text

and my code is (in the keyDown event)

l = len(me.selText) or l = me.seltext.Len
l = 2, and that is correct

But if i select text like this: T[his] is my text

l is 0 (zero) in both case, and it should be 3!

----
An it is the same if I use
l = me.selLength


Any workaround or another tip how to handle this are more than welcome!
Or is i missing something here??



Sven E Olsson



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to