Hello!
I need to know how to insert a dash, for example, every 3 characters in string. (Then show it in a text box.) This is what I have right now but it doesn't do anything. What is wrong with this code?
Thanks!
~NinjaNic
Code:Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Dim YourText As String = TextBox1.Text For i As Int32 = YourText.Length To 0 Step -3 YourText.Insert(i, "-") Next TextBox1.Text = YourText End Sub