可以禁用特定的Delphi提示吗? [英] Can specific Delphi hints be disabled?

查看:150
本文介绍了可以禁用特定的Delphi提示吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Delphi中,您可以使用编译器指令禁用特定警告,例如

In Delp you can use compiler directives to disable specific warnings, such as

{$WARN USE_BEFORE_DEF OFF}

但是当我试图用一个特定的提示,其underscore_style_name我出了帮助文件,说它不知道{$ HINT}是什么。

But when I tried to do that with a specific hint, whose underscore_style_name I got out of the helpfile, the compiler said it doesn't know what {$HINT} is. So is there any way to do this?

推荐答案

没有具体的提示,但你可以禁用它们。

No specific hints, but you can disable them all.

{$HINTS OFF}
procedure MyProc;
var
  i : integer;
begin
  DoSomething;
end;
{$HINTS ON}

这篇关于可以禁用特定的Delphi提示吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆