|
-
May 27th, 2010, 11:36 AM
#1
Thread Starter
Frenzied Member
Re: Verbose line output at runtime?
 Originally Posted by techgnome
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|