L
lovefox
Unregistered / Unconfirmed
GUEST, unregistred user!
unit U_LBOperate;
interface
uses extctrls,classes;
type TLBOperate=class(Timage)
private
ShapesNum:integer;
procedure SetShapesNum(AShapesNum:Integer);
public
Procedure AddShape;
published
shapes:Integer read ShapesNum write setShapesNum;
end;
implementation
procedure TLBOperate.SetShapesNum(AShapesNum: Integer);
begin
if ShapesNum<>-1 then
shapesNum:=AShapesNum;
end;
end.
每次编译都说published里面的shapes不是一个类,是不是我的面向对象理解有错啊。
interface
uses extctrls,classes;
type TLBOperate=class(Timage)
private
ShapesNum:integer;
procedure SetShapesNum(AShapesNum:Integer);
public
Procedure AddShape;
published
shapes:Integer read ShapesNum write setShapesNum;
end;
implementation
procedure TLBOperate.SetShapesNum(AShapesNum: Integer);
begin
if ShapesNum<>-1 then
shapesNum:=AShapesNum;
end;
end.
每次编译都说published里面的shapes不是一个类,是不是我的面向对象理解有错啊。