This program calculates the perimeter of an area after the user inputs two measurements (length and width). It works out the cost per meter and also any applicable price reductions and discounts based on certain criteria. […]
With the calculator program I created earlier, one of the concerns is that a user is able to type in a letters into the text edit box instead of only being allowed to type in […]
Here is a simple calculator program I made in Delphi. There is also an IF THEN ELSE statement if the user is trying to divide by zero so that we do not encounter a run-time […]
As I go through the activities with my students, I like to create samples from most of the activities we do so they have something to follow or revise with in addition to their own […]
Another basic example of IF THEN ELSE. procedure TForm1.btnCheckClick(Sender: TObject); var age : Integer; begin age := StrToInt(edtAge.Text); if (age>=18) then ShowMessage(‘Congratulations! You are old enough to vote!’) else ShowMessage(‘Sorry, you are not old enough […]
Use the file below to show your students how the itemindex works in the radiogroup in Delphi. It also incorporates IF, THEN and ELSE.
Learn more about the structure and contents of a Form’s Unit in Delphi application. [delphischool]
This lesson introduces the very basic concepts and terminology of classes and objects and how they are used in modern Object Oriented Programming languages, like Delphi. [delphischool]