
Conditional compilation using global constants
yes, under Tools|Options|Advanced enter something like the following for
Conditional Compilation Arguments...
PDP_CLIENT_APP = -1 : CONMERGE_APP = -1 : CUSTOM_STARTUP = -1
setting to -1 results in TRUE evaluation, setting to 0 or omitting results
in FALSE evaluation
constants must be seperated by ' : ', i.e. SPACE COLON SPACE
the use like this...
#If PDP_CLIENT_APP Then
.....
#End If
Quote:
> I need to use conditional compilation in my latest project. I want to
> use a constant (defined by #Const) in the #If statement, but conditional
> constants apparently aren't global in scope. I have a VB book that says
> there's a way around this by using the "Advanced" tab under the
> "Options" menu entry. However, I can't figure out exactly what to enter
> into the "Conditional compilation arguments" field, and the book doesn't
> say. Anyone know how to do this?
> Thanks in advance,
> Craig C.