Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convert 2 lines to one
#1
Sorry I couldn't find a better title for this topic. Basically what I want to do is convert 2 lines to one. I have:

btn_
1

but it has to be:

btn_1

Probably there will be an easy solution but honestly I didn't found one on the internet.
#2
Well you could always press the backspace key...


Or, you can do something like this
[code2=vbnet]Public Function OneLine(ByVal toFix As String) As String
Dim returnString As String = ""
Dim lines() As String = toFix.Split(vbNewLine)
For Each line As String In lines
returnString = returnString & line
Next

Return returnString
End Function[/code2]
My Blog | My Setup | My Videos | Have a wonderful day.
#3
Thanks for the tip. I never used the backspace before! <!-- sConfusedhock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt="Confusedhock:" title="Shocked" /><!-- sConfusedhock: -->
Thanks for the code snippet, I'll test it tomorrow.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Read certain lines brco900033 3 13,789 09-26-2012, 03:56 PM
Last Post: brandonio21
  Read and delete lines brco900033 6 21,069 09-16-2012, 09:38 AM
Last Post: brandonio21
  Search ListBox + Convert ListBox.item to string brco900033 3 13,740 09-13-2012, 03:03 PM
Last Post: brandonio21
  How to write string query on multiple lines kismetgerald 1 8,449 08-29-2012, 04:01 PM
Last Post: brandonio21

Forum Jump:


Users browsing this thread: 1 Guest(s)