Hi,
I'm getting very irritated at the VBcode box in this forum.
Let's say I have a box like this with some random code:
vb Code:
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) Dim IntSelStart As Integer IntSelStart = Text1.SelStart Text1.Text = Replace(Text1.Text, "b", "q") Text1.SelStart = IntSelStart End Sub
Then if I want to copy this, and use in my project, I select the whole text and press ctrl+c... however, when i paste it into vb:
vb Code:
1. Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) 2. Dim IntSelStart As Integer 3. IntSelStart = Text1.SelStart 4. 5. Text1.Text = Replace(Text1.Text, "b", "q") 6. Text1.SelStart = IntSelStart 7. End Sub
It adds numbers to every two lines, which I have to remove manually, line by line... And if it was a big chunk of code I copied, this would take a while.
So I wonder, can't anybody remove the stupid numbers???




Reply With Quote