Calculator in delphi
isaline
Posted messages
25
Status
Member
-
mdu52 -
mdu52 -
Hello,
I am a computer science student and I would like some help to create a calculator using DELPHI.
Best regards;
I am a computer science student and I would like some help to create a calculator using DELPHI.
Best regards;
Configuration: Windows XP Firefox 2.0.0.13
6 answers
-
Source code calculator in Delphi: https://delphi.developpez.com/telecharger/index/categorie/21/Codes-sources-Delphi#JCAgrandsnombres
If you want to learn Delphi, there are some very good free courses here: https://delphi.developpez.com/cours/ -
document yourself on Delphi, for the rest it's easy ;-)
you need a textbox for the small screen of the calculator, but it must be locked for writing (there's an attribute to set to false, I don't remember which one)
if a number button is pressed (just fill in the associated procedure for that button)
you display the number in the textbox
if it's an operator (+ / * or -)
- you read what's in the textbox
- you convert the content from a string to numbers (there's the toint procedure in Delphi I think, but be careful when the number is a real or a very large integer: to avoid overflow)
I gave you some ideas, it's up to you to see for the rest
good luck -
-
Hello everyone
Creating a "SIMPLE" calculator is quite easy in Delphi. Here is a link:
http://www.phidels.com/php/index.php3?page=debuter/calculette1.htm
For a scientific calculator, it's also possible, but more complex.
Sources are available if you need them. -
Hello Isaline
I have PDF documents on this (small calculator and scientific calculator) if you want me to send them, leave your email and you will receive them.
--------------------------------------------------------------------------------
Hello!!!!!!!!!! -