|
-
Sep 16th, 2000, 05:43 PM
#1
Thread Starter
Frenzied Member
how do I trim 1 character from the left of a text box?
NXSupport - Your one-stop source for computer help
-
Sep 16th, 2000, 05:46 PM
#2
Hyperactive Member
text1.text=right (text1.text,len(text1.text)-1)
In the beginning the universe was created. This has made a lot of people very angry and is generally regarded as a bad idea.
- Douglas Adams
The Hitchhiker's Guide to the Galaxy
-
Sep 16th, 2000, 05:54 PM
#3
Thread Starter
Frenzied Member
after that, how do I get it so that it brings the focus to the end again? (with out using send keys)
NXSupport - Your one-stop source for computer help
-
Sep 16th, 2000, 05:59 PM
#4
Hyperactive Member
Private Sub Command1_Click()
Text1.Text = Right(Text1.Text, Len(Text1.Text) - 1)
Text1.SelStart = Len(Text1.Text)
Text1.SetFocus
End Sub
In the beginning the universe was created. This has made a lot of people very angry and is generally regarded as a bad idea.
- Douglas Adams
The Hitchhiker's Guide to the Galaxy
-
Sep 16th, 2000, 06:07 PM
#5
Lively Member
Not much different from asabi, but trim method
Code:
Private Sub Command1_Click()
Text1.Text = Mid$(Text1, 2)
Text1.SelStart = Len(Text1)
Text1.SetFocus
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|