type
TMyButton = class(TButton)
published
property Size: Integer read FSize write SetSize;
procedure DoSomething;
private
FSize: Integer;
procedure SetSize(const Value: Integer);
end;{ TMyButton }procedure TMyButton.DoSomething;
beginend;procedure TMyButton.SetSize(const Value: Integer);
begin
FSize := Value;
end;
这个是帮助里的标准程序,可是就是在
property Size: Integer read FSize write SetSize;这句上弹出
Field or method identifier expected错误,
再想问各位高手,Delphi的高手写Delphi常用这种类型定义吗?
TMyButton = class(TButton)
published
property Size: Integer read FSize write SetSize;
procedure DoSomething;
private
FSize: Integer;
procedure SetSize(const Value: Integer);
end;{ TMyButton }procedure TMyButton.DoSomething;
beginend;procedure TMyButton.SetSize(const Value: Integer);
begin
FSize := Value;
end;
这个是帮助里的标准程序,可是就是在
property Size: Integer read FSize write SetSize;这句上弹出
Field or method identifier expected错误,
再想问各位高手,Delphi的高手写Delphi常用这种类型定义吗?
解决方案 »
- ADOQryDetail.Delete时BOF或EOF错误
- Wps2005用的TBXOffice2003Dock在那个控件里?
- 求救!!!谁有〈Delphi5.x分布式多层应用系统篇〉附书源码
- Query 在修改后 保存時是不是不支持 事務的保存方法?
- 自定以大小打印问题,(98,win2000)都可以用
- 请问一个读取数据的问题,在线等待!!!
- buf:arry[0..1] of char是什么意思?
- CallProcedure(const PRC_Name:String; const CallParams: array of const) : Boolean;句中的几个CONST都是什么意思?它和不加CONST有什么
- 复制文件,之后改名....怎样做的?
- 高级程序员2000年成绩出来了吗(山东)?
- 什么是 多步操作产生的错误!!!
- Resourcestring用法
==================================
type
TMyButton = class(TButton)
private
FSize: Integer;
procedure SetSize(const Value: Integer);
published
property Size: Integer read FSize write SetSize;
procedure DoSomething;
end;{ TMyButton }procedure TMyButton.DoSomething;
beginend;procedure TMyButton.SetSize(const Value: Integer);
begin
FSize := Value;
end;