Results 1 to 3 of 3

Thread: [RESOLVED] Deleting text in a textbox

  1. #1

    Thread Starter
    Addicted Member ajames's Avatar
    Join Date
    Mar 2005
    Location
    Wales, UK
    Posts
    178

    Resolved [RESOLVED] Deleting text in a textbox

    I have a virtual on screen keyboard, and one of the buttons is a backspace.

    What command would I use to delete the last letter of the textbox?

  2. #2
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: Deleting text in a textbox

    Try this..
    VB Code:
    1. Text1.Text = Left$(Text1.Text, Len(Text1.Text) - 1)
    (Assuming " " as a posible character)

    Or, for only visible characters..

    VB Code:
    1. Text1.Text = Left$(Text1.Text, Len(Trim$(Text1.Text)) - 1)

  3. #3

    Thread Starter
    Addicted Member ajames's Avatar
    Join Date
    Mar 2005
    Location
    Wales, UK
    Posts
    178

    Re: Deleting text in a textbox

    Thanks. It worked perfectly

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width