Irrititating problems with conditional compile

  • Thread starter david epsom dot com dot au
  • Start date
D

david epsom dot com dot au

In A 2000, this won't compile at all:

#if MyConst then
comments and invalid code
#End If
(Regardless of the state of MyConst, syntax
checking applies to both legs of an #If)

In A97, this will 'compile and save' if MyConst is
declared as true as a database option:

#if MyConst then

#Else
comments and invalid code
#End If


------- but you can't build an MDE with code like that:
The MDE doesn't see conditional compilation options
from the IDE. You have to use code declarations or
environment constants:

#If False then
comments and invalid code
#End If

or
#Const MyConst = 0
#If MyConst Then
comments and invalid code
#End if

(david)
 

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