Word_TBL编译报错



在Delphi7中,Word_TBL编译报错:

---------------------------------------------------------------

9: if Assigned(FOnXMLBeforeDelete) then
         FOnXMLBeforeDelete(Self,
                            IUnknown(TVarData(Params[0]).VPointer) as Range {const Range},
                            IUnknown(TVarData(Params[1]).VPointer) as XMLNode {const XMLNode},
                            Params[2] {WordBool});

---------------------------------------------------------------


因为变量Range名称冲突,无法正常编译。把Range修改为Word_TLB.Range,即可。


修改后的代码如下: 

---------------------------------------------------------------

9: if Assigned(FOnXMLBeforeDelete) then
         FOnXMLBeforeDelete(Self,
                            IUnknown(TVarData(Params[0]).VPointer) as Word_TLB.Range {const Range},
                            IUnknown(TVarData(Params[1]).VPointer) as XMLNode {const XMLNode},
                            Params[2] {WordBool});

---------------------------------------------------------------


                                                      By  JRQ

                                                    2016.06.06




发布了108 篇原创文章 · 获赞 7 · 访问量 45万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览