Private Sub key_deleteone_Click
Dim tmp_xlbl As B4XView = Sender
CreateHaloEffect(tmp_xlbl.Parent,tmp_xlbl.Width/2,tmp_xlbl.Height/2,keyboard_click_color)
If current_pos = 4 Then
hashed_value_4 = ""
xlbl_pin_4.Text = Chr(0xF10C)
If code_length = 4 Then
SetCodeTextColor(code_text_color)
End If
else If current_pos = 3 Then
hashed_value_3 = ""
xlbl_pin_3.Text = Chr(0xF10C)
else If current_pos = 2 Then
hashed_value_2 = ""
xlbl_pin_2.Text = Chr(0xF10C)
else If current_pos = 1 Then
hashed_value_1 = ""
xlbl_pin_1.Text = Chr(0xF10C)
else If current_pos = 5 Then
hashed_value_5 = ""
xlbl_pin_5.Text = Chr(0xF10C)
else If current_pos = 6 Then
hashed_value_6 = ""
xlbl_pin_6.Text = Chr(0xF10C)
else If current_pos = 7 Then
hashed_value_7 = ""
xlbl_pin_7.Text = Chr(0xF10C)
else If current_pos = 8 Then
hashed_value_8 = ""
xlbl_pin_8.Text = Chr(0xF10C)
If code_length = 8 Then
SetCodeTextColor(code_text_color)
End If
End If
If current_pos > 0 Then current_pos = current_pos -1 <------ my suggested change on the line.
End Sub