Hello Developers, I'm here for your kind help,
I am making a program where these codes i wrote:
for i as integer = 0 to 5
If TextBox4.Text.Contains("1") Then
TextBox4.Text = TextBox4.Text.Replace("1", "_n_")
End If
If TextBox4.Text.Contains("2") Then
TextBox4.Text = TextBox4.Text.Replace("2", "_o_")
End If
If TextBox4.Text.Contains("3") Then
TextBox4.Text = TextBox4.Text.Replace("3", "_p_")
End If
If TextBox4.Text.Contains("4") Then
TextBox4.Text = TextBox4.Text.Replace("4", "_q_")
End If
If TextBox4.Text.Contains("5") Then
TextBox4.Text = TextBox4.Text.Replace("5", "_r_")
End If
next
Now the problem praised to me is i have over 100 if condition with this loop (i just show here 5),
so, i have to write if condition 100 times, i dont have an idea to get short this code.
can anybody help me to short this code with few lines? i dont want to type 100 times.
Please help me.