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)
#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)