有这样一个类TA=class(TPersistent)
published
property a:string;
property b:string;
end;TAA=class(TA)
end;我使用GetPropList可以获得TA的公布属性,
但无法获得TAA的公布属性而且触发异常,按说TAA的公布属性和TA一样
如何解决
published
property a:string;
property b:string;
end;TAA=class(TA)
end;我使用GetPropList可以获得TA的公布属性,
但无法获得TAA的公布属性而且触发异常,按说TAA的公布属性和TA一样
如何解决
var
PropList: PPropList;
Count: Integer;
begin
Count := GetPropList(TForm1.ClassInfo, PropList);
showmessage(inttostr(Count));
end;// 這樣都可取得TForm1的父類TForm的屬性個數喲