请教以下定义的意思?我用过,但是不是很明白。有没有大侠能给出好的解释和示例。private
GetExp: string;public
property ExpDisp: string read GetExpDisp write SetExpDisp; //这行定义的意思?procedure Tfrm.SetExp(const Value: string);
begin
m_sExp := Value;
{ TODO : 解析表达式,还原条件显示 }
end;
GetExp: string;public
property ExpDisp: string read GetExpDisp write SetExpDisp; //这行定义的意思?procedure Tfrm.SetExp(const Value: string);
begin
m_sExp := Value;
{ TODO : 解析表达式,还原条件显示 }
end;
----------------
通过GetExpDisp函数来读取ExpDisp的值
通过SetExpDisp函数来设置ExpDisp的值
----------------
ps:
建议你好好看看PASCAL语法先