2008. szeptember 3., szerda

Comment out large amount of source code


Problem/Question/Abstract:

How to comment out large amount of source code

Answer:

You can use { } or (* *) or // [Delphi 2.x+] to comment out code in Delphi. But, if you have a large amount of code that you want to comment out, none of the above operators may help, depending on whether you have already used those operators in your code. Here's a definitive way to comment out code:

{$IFDEF False}

// your commented code goes here

{$ENDIF}

Nincsenek megjegyzések:

Megjegyzés küldése