Calculate
I am building a calculator and I have a question.
I've created buttons with numbers and added code to show numbers in text box when button is clicked.I've also added buttons with mathematical functions same way.Now,when user clicks buttons the numbers and operators are displayed in text box,that's ok but then I want to calculate what is in that text box and show result in other text box.So,user can type different mathematical functions and numbers and some code should calculate thet.What's the code?
|