怎么存放接口变量指向的对象?
createField :IField;
这个方法返回的是接口,怎么存放其所指向的对象指针。
[解决办法]
......
FFiledList: IInterfaceList;
......
FFieldList := TInterfaceList.Create;
FFieldList.Add(Field);
......
发布时间: 2012-02-13 17:20:26 作者: rapoo
怎么存放接口变量指向的对象?
createField :IField;
这个方法返回的是接口,怎么存放其所指向的对象指针。
[解决办法]
......
FFiledList: IInterfaceList;
......
FFieldList := TInterfaceList.Create;
FFieldList.Add(Field);
......