DELPHI Unit File Structure

Source: Internet
Author: User

UnitUnit1;Interface  {Interface section begins}uses  {Reference Unit list, which is optional if the containing must immediately follow the interface keyword}  {The Interface section declares constants/types/variables/procedures and functions, which are like their own declarations for reference units}  {procedures and functions that are declared in the interface section are like using the Forward keyword}  {End of Interface Section}Implementation  {Implementation Part}uses  {If you include uses words, you must follow the keyword implementation}  {The procedures and functions defined in interface are implemented here, and can be defined and invoked in any order.}  {a list of procedures and functions can be omitted here, if included, must be the same.}  {You can define cell-private constants/types (including classes)/variables/procedures and functions, but these are not visible to clients of the referencing unit}{$R *.DFM}  {if it is a corresponding form of the cell file, there will be this sentence. The $R directive is used to load an external resource file, which is a form file loaded with the same name that is compiled together.}initialization  {Initialization Section}  {the program executes at startup and executes sequentially}  {before the initialization code of a unit runs, it runs the initialization portion of each cell it uses .}Finalization  {end part, execution at end of program}End.

DELPHI Unit File Structure

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.