|
-
Nov 21st, 2008, 07:51 AM
#1
Thread Starter
New Member
Small calculator problem in VB6
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|