|
-
Jan 4th, 2004, 05:31 PM
#1
Thread Starter
Lively Member
Add onto Text in a textbox
Hello,
With a click of a button how can i make a certain word add onto a sentence in a textbox? Thx
-
Jan 4th, 2004, 05:36 PM
#2
Like:
VB Code:
Option Explicit
Private Sub Command1_Click()
Text1.Text = Text1.Text & "NewWord"
End Sub
Bruce.
-
Jan 4th, 2004, 06:15 PM
#3
Do like Bruce said if it's at the end (or beginning, except inverted), though if it's somewhere in the middle, you'd have to most likely use InStr with some Mid functions. I'll write something up for you if it is in the middle. Otherwise, ignore this 
PS. Option Explicit makes VB raise an error any time it encounters an undeclared variable when compiling (whether to .exe or just in the IDE)
The time you enjoy wasting is not wasted time.
Bertrand Russell
<- Remember to rate posts you find helpful.
-
Jan 4th, 2004, 08:01 PM
#4
-
Jan 4th, 2004, 08:11 PM
#5
I guess I should have introduced that. I was actually referring to the Option Explicit in Bruce Fox's code
The time you enjoy wasting is not wasted time.
Bertrand Russell
<- Remember to rate posts you find helpful.
-
Jan 4th, 2004, 08:14 PM
#6
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
|