Delphi EXPERT ToolServices.getCurrentFile 失败
获取 Delphi XE Experts 中正在处理的当前文件的新方法是什么?
以前在 Delphi 5-7 中我们使用 ToolServices.getCurrentFile
What is a new way to get current file that is being worked on in Experts for Delphi XE
Previously in Delphi 5-7 we used ToolServices.getCurrentFile
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许已弃用的单元
ToolIntf
、ExptIntf
等不再工作。您可以使用IOTAModuleServices.CurrentModule
代替。这是一个简单的例子:Perhaps the deprecated units
ToolIntf
,ExptIntf
etc. are no longer working. You can useIOTAModuleServices.CurrentModule
instead. Here's a quick example:另一种方法是将“编辑器中的文件名”作为参数传递给您的工具。 $EDNAME
An alternate method is to pass the "name of file in the editor" to your tool as a parameter. $EDNAME