1.单元和程序(Units和Programs)
1)Programs
program Editor; uses Forms, REAbout, // An "About" box REMain; // Main form {$R *.res} begin Application.Title := 'Text Editor'; Application.CreateForm(TMainForm, MainForm); Application.Run; end.
2)Unit
unit Unit1;interfaceuses // List of unit dependencies goes hereimplementationuses // List of unit dependencies goes here// Implementation of class methods, procedures, and functions goes hereinitialization// Unit initialization code goes herefinalization// Unit finalization code goes hereend.
2.引用Unit到Unit
uses Forms, Main;uses Forms, Main;uses Windows, Messages, SysUtils, Strings, Classes, Unit2, MyUnit;
3.引用Unit到program or library
uses Windows, Messages, SysUtils, Strings in 'C:\Classes\Strings.pas', Classes;
以上是小编为您精心准备的的内容,在的博客、问答、公众号、人物、课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索dependencies
, application
, forms
, classes
, unit
strings
,以便于您获取更多的相关知识。
时间: 2024-09-14 23:22:01