Difference between revisions of "Begin/zh CN"
From Free Pascal wiki
Jump to navigationJump to searchLine 27: | Line 27: | ||
{{Keywords}} | {{Keywords}} | ||
+ | [http://www.arizona-breast-cancer-specialists.com/brachytherapy/all-about-what-is-brachytherapy.html Brachytherapy] |
Revision as of 18:19, 20 October 2010
关键字 keyword begin 用于标明函数、对象的属性、过程、程序、property等的开始, 也可以用于程序块的开始。
对于一个函数,方法(method)、过程(procedure)、程序(program)、属性(property),它总是用于const、type以及var之后,在第一个可执行语句之前。它必须伴随end同时出现:
<delphi>
program Project1; var (..); begin (..); end.
</delphi>
对于块标记,此关键字用于开头,同样也必须标明结束:
<delphi>
if (..) then begin (..) end else begin (..) end;
</delphi>
一个begin 必须对应一个end。
Keywords: begin — do — else — end — for — if — repeat — then — until — while
Brachytherapy