473,322 Members | 1,431 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,322 software developers and data experts.

Custom constants

I want to use Custom constants to set several directives to use in the
application.
To do so I can use the Custom constants in the Build of the Configuration
Properties.

The settings I want is specificaly per customer. So customer one is using a
download, then I set blnDownload = True. But customer two is not using
download, then I set blnDownload = False.

Question:
How can I set my environment to customer one and my college his environment
to customer two whithout changing the Custom constans in the Configuration
Properties?
Nov 22 '05 #1
1 1789
J. van Herten,
Have you tried to define multiple Configurations?

Use "Build - Configuration Manager" then select "<New>" in the dropdown to
create "Customer Download" and "Customer Non Download" configurations (you
may want to consider 4 configurations, that varies both Download & Debug), I
would create the configurations for both the solution & projects in the
solution.

In the Customer Download configuration set blnDownload = True.

In the Customer Non Download configuration set blnDownload = False.

Then you can select the Customer Download configuration & your colleague can
select the Customer non Download configuration.

Note: I would consider renaming or removing the standard Debug & Release
configurations using "<edit>" dropdown in the "Build - Configuration
Manager" to avoid confusion.

Hope this helps
Jay

"J. van Herten" <J. van He****@discussions.microsoft.com> wrote in message
news:DB**********************************@microsof t.com...
I want to use Custom constants to set several directives to use in the
application.
To do so I can use the Custom constants in the Build of the Configuration
Properties.

The settings I want is specificaly per customer. So customer one is using
a
download, then I set blnDownload = True. But customer two is not using
download, then I set blnDownload = False.

Question:
How can I set my environment to customer one and my college his
environment
to customer two whithout changing the Custom constans in the Configuration
Properties?

Nov 22 '05 #2

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

Similar topics

1
by: J. van Herten | last post by:
I want to use Custom constants to set several directives to use in the application. To do so I can use the Custom constants in the Build of the Configuration Properties. The settings I want is...
0
by: David W. Fenton | last post by:
Today I was working on a hideous old app that I created a long time ago that does a lot of showing/hiding/resizing of fields on one of the forms. I had used constants to store reference values for...
17
by: Steve Jorgensen | last post by:
If you've ever employed custom error numbers and messages in you programs, you've probably ended up with code similar to what I've ended up with in the past something like... <code> public...
7
by: Steve Jorgensen | last post by:
Here is some code to generate code for raising and getting information about custom errors in an application. Executing the GenerateXyzErrDefs procedure generates the code. <tblXyzError>...
2
by: SpotNet | last post by:
Hi Newsgroup, I've been creating (almost done) Common Dialog class libraries (under one name space) with highly customisable common dialogs. With my ColorDialog I am able to completely hide...
5
by: Brian Keating EI9FXB | last post by:
Hello there, Wonder can anyone point me in the correct direction? I would like to change the standard list view control so that i can have alternated rows in a different color, i.e. white grey...
0
by: R.A.F. | last post by:
Hi, I wrote a little app which should add on Toolbox palette my custom controls. however, it does not work. it creates well my TAB with my custom name, but it does not add my custom control....
0
by: daveL | last post by:
Anybody Know what the leave event is For a Custom and User Controls the WM Constants and Control Constants Thanks DaveL
1
by: daveL | last post by:
Anybody Know what the leave event is For a Custom and User Controls the WM Constants and Control Constants Thanks DaveL
54
by: shuisheng | last post by:
Dear All, I am always confused in using constants in multiple files. For global constants, I got some clues from http://msdn.microsoft.com/en-us/library/0d45ty2d(VS.80).aspx So in header...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...

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.