?
Solved

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

Posted on 2003-10-22
1
Medium Priority
?
181 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 200 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses
Course of the Month15 days, 19 hours left to enroll

850 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