Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21178

[RESOLVED] Text boxes

$
0
0
I have two text boxes on a form.

The user enters text into the first button and when they press the 'add' button the text is added to the second text box. However when the user adds the ttext to the second box then decides to they want to change the text, when they press the 'add' button the text is added to the first string of text in the sesecond text box instead of replacing it.


The code also performs checks on the text the user has entered in the first text box when the add button is pressed. My code is along these lines:

'I added textbox2.text=" " here but then the check for full stops did not work.

If the textbox1 contains a full stop
msg box 'cannot full stops'
Else
add the the text in textbox1 to text box 2.

I tried adding textbox2.text=" " before this bit of code. This replaced the text already in textbox2 as i want it to, but it does not perfrom the check for the full stop.
Does anyone have any idea where i need to place the textbox2.text= " "

Viewing all articles
Browse latest Browse all 21178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>