Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools

Multiple compilation constants
[ All Languages » VB »  IDE]

Total Hit ( 2283)

Rate this article:     Poor     Excellent 

 Submit Your Question/Comment about this article

Rating


 


Visual Basic's documentation does not explain how to specify more than just one conditional compilation constant in the Advanced tab of the Options dialog. The correct way is using a colon as a delimiter, as in:

demo = -1: version = 100

Note that you can only assign integer numeric values, and must use -1 and 0 for True and False respectively. An alternate way to define compilation constants is using the /D switches on the command line when launching the VB5.EXE file:
C:\VB5\VB5.EXE /Ddemo=-1:version=100

In this case you must not use spaces before or after the "=" and ":" symbols. If you are developing different versions of your applications using conditional compilation, you might create two or more shortcut on your desktop or Start menu, each one running the VB environment with a different set of compilation constants.


Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.