By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,041 Members | 958 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,041 IT Pros & Developers. It's quick & easy.

Conditional compilation constants (Ccc)...

P: n/a
Hi,

Is there any option/setting/attribute availble to detect the difference in
the value specified for a Ccc on the build tab and used/given in the code?

For example: DBEngine="Access" in build tab and #IF DBEngine = "MSAccess" in
code.

I want to detect the above kind of mistakes in the code. I just want to
detect and give a compilation error.

BTW is there any attribute like AbsoluteAttribute by using it in the code
based on some condition to stop compile/run the app?

Regards,
....Ashok

------------------------------------------------------------
The greatest of all weaknesses is the fear of appearing weak.
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a


in build tab: DBEngine="Access"
in code:
#If (DBEngine = "MSAccess") Then
' ... code
#ElseIf (DBEngine = "MSAccess2") Then ' optional.
' ... code
#Else ' optional.
xxyyzz : This 'code' gives compiler error!
#End If

Atara.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #2

P: n/a
Oh no,

If the

#If (DBEngine = "MSAccess") has a spelling mistake like #If (DBEngine =
"MSAcess")

Then the compiler doesn't give an error. Thats what I want.

Regards,
....Ashok

"Atara" <At***@DD.com> wrote in message
news:OU*************@TK2MSFTNGP10.phx.gbl...


in build tab: DBEngine="Access"
in code:
#If (DBEngine = "MSAccess") Then
' ... code
#ElseIf (DBEngine = "MSAccess2") Then ' optional.
' ... code
#Else ' optional.
xxyyzz : This 'code' gives compiler error!
#End If

Atara.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.