Conditional compilation constants (Ccc)...

G

G.Ashok

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
 
A

Atara

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.
 
G

G.Ashok

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top