Delphi Programming
Explore
Main Page
All Pages
Community
Interactive Maps
Recent Blog Posts
Top Content
most_popular
most_visited
Delphi 7
Object Pascal
Delphi 6
Creating DLLs
Simple Calculator Tutorial
Delphi 2007 for Win32
Delphi 8
highest_ratings
newly_changed
3rd Party Components
Delphi 7
Good Quality Applications Built With Delphi
Delphi Release Dates
Open Paradox db without password
RTLVersion Constant
Borland Compiler Conditional Defines
Community
top_users
Community portal
forum
Recent blog posts
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
Delphi Programming
2,929
pages
Explore
Main Page
All Pages
Community
Interactive Maps
Recent Blog Posts
Top Content
most_popular
most_visited
Delphi 7
Object Pascal
Delphi 6
Creating DLLs
Simple Calculator Tutorial
Delphi 2007 for Win32
Delphi 8
highest_ratings
newly_changed
3rd Party Components
Delphi 7
Good Quality Applications Built With Delphi
Delphi Release Dates
Open Paradox db without password
RTLVersion Constant
Borland Compiler Conditional Defines
Community
top_users
Community portal
forum
Recent blog posts
Editing
Object Pascal
(section)
Back to page
Edit
Edit source
View history
Talk (3)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Simple and Compound Statements == A Pascal statement is simple when it doesn't contain any other statements. Examples of simple statements are assignment statements and procedure calls. Simple statements are separated by a semicolon: X := Y + Z; // assignment Randomize; // procedure call Usually, statements are part of a compound statement, marked by begin and end brackets. A compound statement can appear in place of a generic Pascal statement. Here is an example: begin A := B; C := A * 2; end; The semicolon after the last statement before the end isn't required, as in the following: begin A := B; C := A * 2 end; Both versions are correct. The first version has a useless (but harmless) semicolon. This semicolon is, in fact, a null statement; that is, a statement with no code. Notice that, at times, null statements can be used inside loops or in other particular cases.
Summary:
Please note that all contributions to the Delphi Programming are considered to be released under the CC-BY-SA
Cancel
Editing help
(opens in new window)
Follow on IG
TikTok
Join Fan Lab