Click to See Complete Forum and Search --> : Chr(35) (#) goes in text, twice..?
J0e B0b
Nov 16th, 1999, 11:00 AM
----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,
Serge
Nov 16th, 1999, 06:13 PM
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
Serge_Dymkov@vertexinc.com
Access8484@aol.com
ICQ#: 51055819 (http://www.icq.com/51055819)
[This message has been edited by Serge (edited 11-17-1999).]
Inhumanoid
Nov 16th, 1999, 07:09 PM
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...
Yonatan
Nov 16th, 1999, 07:34 PM
I believe the problem is in the Text3_Change() event... What do you have in there?
------------------
Yonatan
Teenage Programmer
E-Mail: RZvika@netvision.net.il
ICQ: 19552879 (http://www.icq.com/19552879)
AIM: RYoni69
or maybe you are using a loop of some kind?
J0e B0b
Nov 17th, 1999, 04:21 AM
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"<> )
J0e B0b
Nov 17th, 1999, 04:25 AM
Haha, nevermind, you were right, I spent one hole hour on this problam : /
It was in the modules.
thanks for your help
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.