In similar theme, this is a bit of code we use to make sure an app will NOT compile.

VB Code:
  1. Option  Explicit
  2. #Const TEST = True
  3.  
  4. Sub BadFunction()
  5.   #If TEST Then
  6.      [COLOR=Red]Will not compile if TEST is true[/COLOR]
  7.   #End If
  8. End Sub
  9.  
  10. Sub ExampleFunction()
  11.   #If TEST Then
  12.      'generate fake data for testing
  13.   #Else
  14.      'get real data from the satellite
  15.   #End If
  16.  
  17. End Sub

Why?

We set TEST true to test applications in the IDE.

For instance we may generate fake data instead of getting data from instrumentation that is not connected.

Obviously it would be a disaster if somebody forgot to set TEST to false, compiled the app and it and sent it to a customer. This way they CAN'T compile it if they forget.