The from the beginning posts will focus on making the early chapters of the "Enjoy Delphi" book easier to understand, I will be starting with Chapter four, which is decision making. This includes if - then - else statements, Case Statements, Nested If Statements, Checkboxes, Radiogroups and the Timer.
In a program with no decision making, where the same event always occurs when the program runs regardless of what the input is, every line of code for an event that is triggered will be used. An If-Then statement allows you to choose which sections of the code are run, if a certain piece of input does not match the if part of your statement, then the rest will not run.
Here is an example of a piece of Code that will show what grade a person got based on their marks, and the form:


No comments:
Post a Comment