Results 1 to 7 of 7

Thread: Chr(35) (#) goes in text, twice..?

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Posts
    6

    Post


    ----code----
    text3.text = chr(35) 'chr = #
    ----code----


    Hello:

    This is a very easy line of code, but the text box keeps coming up with two #'s. I ony want one, how do I do this?

    thank you,

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Are you sure you didn't have anything in the Textbox before? This line of code should not give you more then one character.


    Regards,

    ------------------

    Serge

    Software Developer
    [email protected]
    [email protected]
    ICQ#: 51055819



    [This message has been edited by Serge (edited 11-17-1999).]

  3. #3
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    Even so.... If there was a "#" in there before this code would have overwritten it and there would still be one....

    J0e B0b, maybe if you give us some bigger chunk of code.. I think the problem lies elsewhere....

    also this would be a good time for some debugging...

  4. #4
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Post

    I believe the problem is in the Text3_Change() event... What do you have in there?

    ------------------
    Yonatan
    Teenage Programmer
    E-Mail: [email protected]
    ICQ: 19552879
    AIM: RYoni69

  5. #5
    Guest

    Post

    or maybe you are using a loop of some kind?

  6. #6

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Posts
    6

    Post

    Hello again,

    here is the line of code I used

    ----code----
    Formsn.Text3.text = "whatever:" + Chr(34) + Chr(35) + Text1.text + Chr(34) + "<>" + Formsn.Text3.text
    ----code----

    what this is doing is, adding ( whatever:"#text1.text"<> )

  7. #7

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Posts
    6

    Post

    Haha, nevermind, you were right, I spent one hole hour on this problam : /

    It was in the modules.

    thanks for your help

Posting Permissions

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



Click Here to Expand Forum to Full Width