Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I get rid of program ... undefined build errors
Message
 
 
À
03/09/2009 07:14:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2000 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01422389
Message ID:
01422391
Vues:
104
>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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform