All articles(网络文学目录) All Pictures(图片目录) All Softwares(软件目录)

 
delphi设置提示信息

Writer: aaa Article type: Programming skills(编程技巧) Time: 2014/7/19 0:13:28 Browse times: 328 Comment times: 0

delphi设置提示信息


Head photo

Go homepage
Upload pictures
Write articles

delphi设置提示信息

设置提示信息
在程序开发的过程中,可能会声明一个或多个变量,但是这些变量却始终没有被使用。在默认的情况下,编译器会提示这些变量在声明后从来没有被使用过。通过下面的方法,可以决定这些消息是否显示。
• 通过改变关于工程的一些环境设置。可依次选择“Project”→“Options...”菜单项打开“Project Options”对话框,选中“Compiler Messages”标签页,改变General 下的“Show hints”选项即可。
• 通过编译指令{$HINTS ON}与{$HINTS OFF}来进行设置。在“Compiler Messages”标签页General 的“Show hints”选项被选中的情况下,实现不显示此类提示信息。代码如下:
...
{$HINTS OFF}
procedure Test;
var
I: Integer;
begin
end;
...
在编译上面这段代码的过程中,不会出现变量I 没有被使用的提示信息。





There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)

Disclaimer Privacy Policy About us Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.