function PropertyExists(const AObject: TObject;const APropName:String):Boolean;
//判断一个属性是否存在
var
PropInfo:PPropInfo;
begin
PropInfo:=GetPropInfo(AObject.ClassInfo,APropName);
Result:=Assigned(PropInfo);
end;
报错:Undeclared identifier:'PProInfo'
是缺少类型定义吗?我从网上也搜不到这个类型,高手指教。有的话帮忙发出来一个。
//判断一个属性是否存在
var
PropInfo:PPropInfo;
begin
PropInfo:=GetPropInfo(AObject.ClassInfo,APropName);
Result:=Assigned(PropInfo);
end;
报错:Undeclared identifier:'PProInfo'
是缺少类型定义吗?我从网上也搜不到这个类型,高手指教。有的话帮忙发出来一个。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货