超级菜鸟问题,我想把一个窗体…… 直接在TForm的继承类中添加,例如:TForm1 = class(TForm)...private...protected...public your_property:your_property_type;end; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 修正:TForm1 = class(TForm)...privateFypur_property:your_property_type;procedure setyour_property(p:your_property_type);...protected...public property your_property:your_property_type;read Fyour_property write setyour_property;end; your_property:your_property_type;放在protected里 your_property:string;read 读的程序 write 写的程序...读的程序 begin result:='';end;写的程序beginend; unit Unit1;interfaceuses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;type TForm1 = class(TForm) private FTestString: string; procedure SetTestString(const Value: string); { Private declarations } public { Public declarations } property TestString:string read FTestString write SetTestString; end;var Form1: TForm1;implementation{$R *.DFM}{ TForm1 }procedure TForm1.SetTestString(const Value: string);begin FTestString := Value;end;end. 实现顺序播放两个avi文件,用一个线程判断播放器播放完一个,再播另一个 Dll里有一个FORM 退出出错 怎样判断一个数是不是整数 进来看一下吧!也许你懂 ActionMangaer+ActionMenuBar问题,在线等急 安装组件时出现 Error:Module header is missing or incorrect是什么问题。 简单问题 一个XP控件的问题。 求助 已经比较熟悉DELPHI,但还不会分布式,JAVA也已入门,如何用JAVA和DELPHI一起做多层呢?请给范例,网站具体链接也行 如何检测一PCHAR类型的字符串中,以*号隔开的数据啊? 请广州的网友帮一下忙
TForm1 = class(TForm)
.
.
.
private
Fypur_property:your_property_type;
procedure setyour_property(p:your_property_type);
.
.
.
protected
.
.
.
public
property your_property:your_property_type;read Fyour_property write setyour_property;
end;
.
.
.
读的程序
begin
result:='';
end;
写的程序
begin
end;
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;type
TForm1 = class(TForm)
private
FTestString: string;
procedure SetTestString(const Value: string);
{ Private declarations }
public
{ Public declarations }
property TestString:string read FTestString write SetTestString;
end;var
Form1: TForm1;implementation{$R *.DFM}{ TForm1 }procedure TForm1.SetTestString(const Value: string);
begin
FTestString := Value;
end;end.