请问DELPHI中属性是怎么定义的? 哪位高手能写个代码让我看看,多谢了,在线等!!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 type TMyClass = class private FProp1: String; procedure SetProp1(value: String); public prperty Prop1: String read FProp1 write SetProp1; end;procedure TMyClass.SetProp1(value: String);begin if FProp1 <> value then FProp1 := Value;end; property定义具体看Delphi的OOP书籍http://lysoft.7u7.net 其中定义的READ和WRITE任可以选择的,根据不同需求 private var FProp1: String; procedure SetProp1(value: String); published prperty Prop1: String read FProp1 write FProp1; prperty setProp1: String read setProp1 write setProp1; 寻高手:人民币求购类似于金山文件粉碎器的代码! 在线结:求字符转换算法如:如字符串asdf123经过一算法后变成了ghjksdk,ghjksdk再经过反算就又变回asdf123,这如何用程序实现.... OnExit有问题? 这里有对dbexpress熟悉的人吗? delphi中如何画曲线 TADOConnection作用? 有谁知道所有的消息是什么?每个消息的具体意思。 大家提供几个能出去的代理服务器 b 提一个很有难度的问题,高高手请进: 如何截获一个IE窗口发送的包并分析它? (尚未结贴) 數據備份 在一个单元里如何才能使用另一个单元的类内的资源 关于取整函数
TMyClass = class
private
FProp1: String;
procedure SetProp1(value: String);
public
prperty Prop1: String read FProp1 write SetProp1;
end;procedure TMyClass.SetProp1(value: String);
begin
if FProp1 <> value then
FProp1 := Value;
end;
具体看Delphi的OOP书籍http://lysoft.7u7.net
var
FProp1: String;
procedure SetProp1(value: String);
published
prperty Prop1: String read FProp1 write FProp1;
prperty setProp1: String read setProp1 write setProp1;