"+" and "-" not clearing
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: "+" and "-" not clearing

  1. #1
    Join Date
    Jul 2006
    Posts
    4

    "+" and "-" not clearing

    I was assembling a little adding (and subtracting ) routine to something and noticed that the command `text1.text="" ` did not clear any + or - signs from the text box although the other text disappeared.
    How do you get rid of them?

  2. #2
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,999

    Re: "+" and "-" not clearing

    put a " " space in there.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,853

    Re: "+" and "-" not clearing

    You should show your code, there is no reason I can think of that the "" would not blank out any data in the text box. If you are still seeing a + or - in there then most likely you have some other code that is actually putting it there after you tried to clear it.
    Always use [code][/code] tags when posting code.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center