Solved

How to meet the requirement of button CE & BackSpace in a calculator

Posted on 2003-10-22
1
168 Views
Last Modified: 2010-05-01
How to meet the requirement of button CE & BackSpace in a calculator?

Thank you!

0
Comment
Question by:gegou
1 Comment
 
LVL 5

Accepted Solution

by:
dc197 earned 50 total points
ID: 9602693
Backspace could trim the text to the left n-1 characters:

Sub Backspace_Click()
   TextInput.Text = Left(Len(TextInput.Text) -1 )
End Sub

CE could clear the text box and wipe all variables:
Sub CE_Click()
   TextInput.Text = ""
   iBuffer = 0
   iCommand = 0 ' etc
End Sub



but I really need more information, sample code, context, etc.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now