存储空间的计算?

xugongming 2008-03-14 04:13:00
各位大侠,请问button:Tbutton在delphi中占的存储空间为多大?
...全文
65 1 打赏 收藏 举报
写回复
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
小呆之家 2008-03-14
  • 打赏
  • 举报
回复
button:TButton;
这个只占4Bytes空间;

如果是:
var
button:Tbutton;

button:=tbutton.create(nil);
showmessage('button control size is:'+inttostr(button.instancesize));//这儿你就看到了大小了。


{From Delphi Help....

Returns the size in bytes of each instance of the object type.

class function InstanceSize: Longint;
}
发帖
非技术区

825

社区成员

Delphi 非技术区
社区管理员
  • 非技术区社区
加入社区
帖子事件
创建了帖子
2008-03-14 04:13
社区公告
暂无公告