473,394 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

compile options

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
Nov 20 '05 #1
3 989
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
Nov 20 '05 #2
Thank you very much Richard

"Richard Myers" <ri*********************@basd.co.nz> wrote in message
news:u6**************@TK2MSFTNGP11.phx.gbl...
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

Nov 20 '05 #3
* "William" <no**@none.com> scripsit:
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).

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Brian | last post by:
Greetings: I am trying to compile the following code via command line. It compiles just fine in visual studio 2002 v7 so i took looked at the properties and i got the following command line...
10
by: Curt Emich | last post by:
I'm trying to create a dataset. I start by creating a connection. Then I create and configure a data adapter. Finally, I select "generate dataset" after right-clicking on the data adapter. It...
10
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat...
12
by: JS | last post by:
I use winXP and have installed Cygwin. I use Dev-C++ and the Cygwin compiler, but for some reason I can't compile this code: #include <setjmp.h> #include <stdio.h> #include <stdlib.h> ...
3
by: Michael | last post by:
Hi! Is it possible to check the active solution configuration (debug, release or some user defined) at compile time using for example preprocessor directives? Best regards, Michael
1
by: Raterus | last post by:
Hi, Is there a way I can see what commands VS.net is using to compile my asp.net projects? I'm sure its using the vbc/csc programs, but I'd love to see the command-line options it is using. ...
5
by: MLH | last post by:
A97 aborts creation of MDE reporting that there's a compile error in one form. Sure enough, if I remove the form from the source database and attempt to compile the MDE, it succeeds. But when I...
5
by: DFB | last post by:
I am the author of the ZLibNetWrapper project on SourceForge (located at zlibnetwrapper.sf.net). This project is a simple mixed-mode .NET wrapper around the ZLib compression library. The ZLib...
3
by: NvrBst | last post by:
Right now I have C99 code in .c extensions. I compile it in VSC++ and it complains about a lot of errors. I change the extensions to .cpp and compile in VSC++ and it succeeds. Is there a way...
1
by: Jon | last post by:
We have a web site that has been running at a customer site for over a year...all of the sudden last week on one page we get the following error Timed out waiting for a program to execute. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.