compile options

  • Thread starter Thread starter William
  • Start date Start date
W

William

I read somewhere that VB.net can exclude code from the release configuration
that was only used for testing during the development stage. If I remember
correctly it went something like:

#if debug
'code that you do not want in release compile goes
'here
#end if

but my head is filled with so many other things that I am learning in order
to make the switch from vb6 to Net that I can't remember. Can someone point
me in the right direction.

Thanks
 
Hi William ,

Your asking about a really flexible part of the complier with a ton of
alternative examples and uses so im not going to bother getting into it
here.

So check out the docs under the terms:

"Conditional Compilation Directives"

hth
Richard
 
* "William said:
I read somewhere that VB.net can exclude code from the release configuration
that was only used for testing during the development stage. If I remember
correctly it went something like:

#if debug
'code that you do not want in release compile goes
'here
#end if

\\\
#If DEBUG Then
...
#End If
///

Remember that you can get information about a language element by
placing the caret on it and pressing the F1 key (assuming help is
installed locally).
 
Back
Top