Hey i need help once agian : /
Need to know how to get my program to replace " " (space) with "" (empty)
I have try:
ComboBox1.Text.Replace(" ", "") but didn't work
Hope you can help me agian (-:
:wave:
Edit: Btw it's in visual basic 2008
Hey i need help once agian : /
Need to know how to get my program to replace " " (space) with "" (empty)
I have try:
ComboBox1.Text.Replace(" ", "") but didn't work
Hope you can help me agian (-:
:wave:
Edit: Btw it's in visual basic 2008
Last edited by kazama; 01-17-2009 at 07:28 PM.
Do you ever wonder why we are here and not there ?
Not sure if this will work i only really know vb6 but instead of " " use
Chr() with the ascii value of space which is 32 i think.
And if the spaces you want to remove are only at begining or end use
Trim()
There are 10 kinds of people in the world. Those who understand binary and those who don't.
Uhmm, it appears to be working for me.
Code:comboBox1.Text = comboBox1.Text.Replace(" ", "")
[16:15:41] Cypher: caus the CPU is a dick
[16:16:07] kynox: CPU is mad
[16:16:15] Cypher: CPU is all like
[16:16:16] Cypher: whatever, i do what i want
God i'm stupid. you are right MaiN that's works. forgot combobox1.text = ..... -.-
Thanks (-:
+rep
Do you ever wonder why we are here and not there ?
Haha, you're welcome.![]()
[16:15:41] Cypher: caus the CPU is a dick
[16:16:07] kynox: CPU is mad
[16:16:15] Cypher: CPU is all like
[16:16:16] Cypher: whatever, i do what i want