Difference between revisions of "$IF"

From Lazarus wiki
Jump to navigationJump to search
Line 7: Line 7:
 
</code>
 
</code>
  
[[Category:Compiler directive]]
+
[[Category:Compiler directives]]

Revision as of 00:04, 14 October 2013

The $IF directive can be used in conditional compilation

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