I`m trying to make a small calculator with + - and other buttons.
I`m stuck at the backspace button.I wrote this but if for example i press the button when no number is in display instead of not doing anything i get an error:
Private Sub Backspace_Click()
Dim LengthOfNumber As Integer
LengthOfNumber = Len(Display)
Display = Left(Display, LengthOfNumber - 1)
End Sub
And i get the error:Run-time error`5`.Invalid procedure call or argument