scripting
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
scripting [2020/07/10 08:29] – tondose | scripting [2020/07/10 09:24] – tondose | ||
---|---|---|---|
Line 27: | Line 27: | ||
- | ==== Creating Code ==== | + | ===== Creating Code ===== |
+ | |||
+ | The code can simply be typed into a text editor. Windows-supplied '' | ||
+ | |||
+ | The structure of a simple Delphi/ | ||
+ | |||
+ | <code delphi> | ||
+ | |||
+ | const | ||
+ | // Constant declarations | ||
+ | |||
+ | VAR | ||
+ | // Variable declarations | ||
+ | |||
+ | { Subprogramme definitions } | ||
+ | |||
+ | procedure DoSomething; | ||
+ | begin | ||
+ | // Executable statements | ||
+ | end; | ||
+ | |||
+ | (* Main programme *) | ||
+ | |||
+ | begin | ||
+ | // Executable statements | ||
+ | end. | ||
+ | |||
+ | </ | ||
+ | |||
+ | **Note** the different use of semicolon '' | ||
+ | |||
+ | **Comments** may be typed into '' | ||
+ | |||
+ | It is highly recommended to structure the code by indenting the statements with two whitespaces at a time. Examples can be found in the [[https:// | ||
+ | |||
+ |