Assuming the character is at the *end* of the editfield, you'd just do:
EditField1.SelStart = Len(EditField1.Text)-1 EditField1.SelLength = 1 EditField1.SelText = "" If the last character typed is in the middle of the editfield, you'd need to remember where it was at. The code would be similar except that SelStart would be the character's position, assuming the EditField were a 0-based array (so, if you want to delete the first character typed, you'd set SelStart to 0). On 5/30/06, Brian Heibert <[EMAIL PROTECTED]> wrote:
I got the code to go to the end of the text in the edit field. Now how do I delete the last character typed without having the user press delete? Brian Heibert [EMAIL PROTECTED] _______________________________________________ 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>
-- Keith Bennett, tA-Kane Software developer and Macintosh enthusiast Free iPods!!! http://www.freeiPods.com/?r=10867472 _______________________________________________ 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>
