DelphiFAQ Home Search:

Compilerswitch {} (Delphi 2/ 3 only)

 

commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

Delphi since version 2 can tell you about minor errors in your code such as declaring a variable and not using it or writing to a variable and not using the stored value.
By default, the hints and wanings are switched off. You can switch them on

  • either on a global level (for all units in a project):
    To view these hints for an entire project, open the Project Options dialog box, go on the Compiler page and select the Show Hints checkbox.
  • even within a small section of a given unit. To view only the hints that apply to a section of code, use the {$HINTS ON} and {$HINTS OFF} compiler directives, as shown below:

{$HINTS ON}
procedure aProc;
var
  X : Integer;
begin
  ShowMessage('X is not used');
end;
{$HINTS OFF}
You don't like the formatting? Check out SourceCoder then!

Comments:

 

 

Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option.
 
It seems that you are
from Los Angeles, US .

Info/ Feedback on this

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.