首页 > 解决方案 > 如何将设计时和运行时打包正确的 Delphi 方式与实际源代码分开?

问题描述

我认为我一直在以错误的方式开发 Delphi。

似乎有很多关于如何的信息,但有限的源代码。我在 Google 和 Stack Overflow 中查看的文档似乎只是解释,几乎没有显示多少源代码。我希望看到一个实际项目,其中开发人员将两者拆分为两个不同的源代码文件。

有没有什么地方可以找到一个实际的项目来拆分这些文件和节目并且它们可以一起工作?

这是在设计时代码中吗?

    property BreakString: String read FBreakString write SetBreakString stored gtBreakStringIsStored;

    property StoppingCount: integer read FStoppingCount write FStoppingCount default -1;

    property AutoSaveBeforeOnProcessEnd: Boolean read FAutoSaveBeforeOnProcessEnd write FAutoSaveBeforeOnProcessEnd;
    property AutoSaveAsYouModifyData: Boolean read FAutoSaveAsYouModifyData write FAutoSaveAsYouModifyData;

如果上面是设计时代码,那么你如何在运行时代码中使用它?

标签: delphi

解决方案


推荐阅读