【发布时间】:2014-03-05 01:36:58
【问题描述】:
我正在 Firemonkey-RAD Studio XE3-Delphi 中开发一个练习应用程序。 实现代码时出现以下错误:
未声明的标识符“TEdit” 未声明的标识符“TLabel” 'TLabel' 在第 35 行不包含名为 'caption' 的成员
我将项目的代码包含在以下正文中。
感谢任何帮助。对我放轻松..我是 Delphi 的新手。
unit strcode1u1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs;
type
Tstrcode1f1 = class(TForm)
ePlainText: TEdit;
laEncrypted: TLabel;
procedure ePlainTextChange(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
strcode1f1: Tstrcode1f1;
implementation
{$R *.dfm}
procedure Tstrcode1f1.ePlainTextChange(Sender: TObject);
begin
end;
procedure Tstrcode1f1.FormCreate(Sender: TObject);
begin
laEncrypted.caption:=
chr(72)+chr(101)+chr(108)+
chr(108)+chr(111)+chr(32)+
chr(87)+chr(111)+chr(114)+
chr(108)+chr(100);
end;
end.
【问题讨论】:
-
我确定您的问题已经得到解答。请根据您的判断接受最佳答案。
-
@David 这种行为没有术语吗?我能想到的最好的就是吃饭和冲刺......
标签: delphi