收下来,说不定啥时候用的上。
解决方案 »
- Delphi 7.0 用ADO 操纵Sql server 2000的问题...
- 请教:用GDI压缩JPG的图像质量问题
- Tchart FastLine 显示不连续的线.
- fastreport3的奇怪问题
- 怎样用TADOQUERY查找所有条件等于LISTVIEW.ITEM.Caption值的记录
- 求Shell Control Pack 的正式版。
- 第三方控件怎么用?
- 如何知道这个事件是由那个构件触发的?
- 怎样得到动态生成组件的名称
- 如何获得DbGrid正在处于编辑状态中的Cell值,请进...
- 用delphi在win内核下编程???
- Delphi中有没有提供判断Edit1.text中输入了多少的字符的函数??如果没有,那实现怎么办?
uses
TypInfo;function GetPropList(TypeInfo: PTypeInfo; out PropList: PPropList): Integer; overload;
begin
Result := GetTypeData(TypeInfo)^.PropCount;
if Result > 0 then
begin
GetMem(PropList, Result * SizeOf(Pointer));
GetPropInfos(TypeInfo, PropList);
end;
end;function GetPropList(AObject: TObject; out PropList: PPropList): Integer; overload;
begin
Result := GetPropList(PTypeInfo(AObject.ClassInfo), PropList);
end;
//.......加两个函数//你用的是Delphi5.0