Difference between revisions of "$IF"

From Lazarus wiki
Jump to navigationJump to search
Line 6: Line 6:
 
  {$IFEND}     
 
  {$IFEND}     
 
</code>
 
</code>
 +
 +
[[Category:Compiler directive]]

Revision as of 00:03, 14 October 2013

The $IF directive can be used in conditional compilation

{$IF CompilerVersion >= 20 }
   if FHandle = INVALID_HANDLE_VALUE then
{$IFEND}