Quote Originally Posted by techgnome View Post
It gets compiled into the app ... the parameter isn't a compile condition... it gets compiled into the code. It's a shortcut for the following:
Code:
If condition = True Then
  Debug.Writeline("Output this")
End If
It's used for the very cases you're looking at... based on some arbitrary value, output something (or don't).

Code:
Debug.WriteLineIf(someCondition,"This will get output if someCondition evaluated to True")
does the samethign as the If statement above, but condenses it to one line. (makes it easier to put in a bunch of them, or take a bunch out.

So... the question is, is what you are looking for is a conditional compiler condition? which will affect whether the code is there or not. OR, are you looking for something you can turn on or off at will at run-time?

-tg

-tg
It needs to be a run-time switch as we don't want to create to compiled versions.