>I have a cross-platform project that runs in both FoxPro 2.6 and VFP9 - each has separate project files but both share the same code with case statement to run the appropriate code (do form myform.scx vs do myform.spr). When I compile on 2.6 I get errors for the code that will actually not even run on it because of the case statements so I know that is unavoidable. But on VFP 9 I get errors about the *.spr code. I don't want to include the foxpro 2.6 .spr files in the VFP - so is there a way to fake out the compiler to not give me these messages. They happen in various prgs and in some scx files. Any ideas?
You can use pre-compiler directives for conditional compiling. Something like
#IF "Visual FoxPro" $ VERSION()
DO FORM MyForm.scx
#ELSE
DO MyForm.spr
#ENDIF
--sb--