Code:
Private Sub Command1_Click()
Dim j As Integer

j = Len(Text1.Text)
If j <> 0 Then
Text1.Text = Left(Text1.Text, j - 1)
End If
End Sub