|
-
Apr 29th, 2003, 01:27 PM
#1
Thread Starter
Frenzied Member
txtbox strings
When I debug my application and look at the value of a txtbox and there's nothing in there it says:
txtbox.text = ""
but when I fire through the app a second time and there still is nothing in the txtbox, it says:
txtbox.text = " "
I do have the maxlength = 5....is there a way to keep the value "" , if nothing is placed in the txtbox?
It's tough being an unhandled exception...
___________
VB.NET 2008
VB.NET 2010
ORACLE 11g
CRYSTAL 11
-
Apr 29th, 2003, 01:36 PM
#2
Sleep mode
Re: txtbox strings
txtbox.text = nothing would result the same thing I guess have you tried this?
-
Apr 29th, 2003, 01:50 PM
#3
Thread Starter
Frenzied Member
arrrg....no it still reads it as having a value...I've tried txtbox.text = "" and txtbox.text = Nothing....anyone know why it puts in the spaces after the second time around?
It's tough being an unhandled exception...
___________
VB.NET 2008
VB.NET 2010
ORACLE 11g
CRYSTAL 11
-
Apr 29th, 2003, 04:22 PM
#4
Fanatic Member
I would verify that you are not changing the txtBox.Text property of the text box. Lots of people use txtBox.Text = "", so maybe on of these is actually txtBox.Text = " ".
I am sure you verified this, but just in case...
-
Apr 29th, 2003, 04:25 PM
#5
PowerPoster
You can also use the trim method to take all spaces away... although I don't know why it is showing up like it is for you in the first place.
-
Apr 29th, 2003, 04:29 PM
#6
Frenzied Member
I couldnt reproduce the problem. It always shows "" when nothing is there in the textbox.would you please send the code?
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Apr 29th, 2003, 04:30 PM
#7
Fanatic Member
Yes, please post the code so we can take a look...
-
Apr 29th, 2003, 04:35 PM
#8
Sleep mode
Originally posted by VBCrazyCoder
Yes, please post the code so we can take a look...
Is the textbox property set to this value at the generated form code ? and I can see any problems in this case , you can set the textbox to null before you start using it if is it possible in your case.
Me.TextBox1.Text=""
-
Apr 30th, 2003, 07:20 AM
#9
Thread Starter
Frenzied Member
I do have the txtbox.maxlength value set to 5.....I'll attach some code a little later...
It's tough being an unhandled exception...
___________
VB.NET 2008
VB.NET 2010
ORACLE 11g
CRYSTAL 11
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
|