Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compiler directive only for dev time
Message
 
À
16/09/2014 17:01:24
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01607627
Message ID:
01607660
Vues:
70
>>>>>Hey all
>>>>>
>>>>>I am trying to execute a piece of code only at design time, never at runtime. I thought I could do a compiler directive. Something like
>>>>>
>>>>>#IF _vfp.startmode=0
>>>>>
>>>>>Of course, that will never work. Compilation is always at startmode 0, so it will be a hit in the exe. I guess it is possible to drive this by checking for the existence of a file? If the file is present, exclude the design time code?
>>>>>
>>>>>Thanks
>>>>
>>>>Why not just pure IF?
>>>>
>>>>IF _vfp.startmode=0
>>>>   ...
>>>>ENDIF
>>>>
>>>
>>>I do not want this code even in the exe at runtime.
>>
>>
>>Then how about to have some #define in the global include file and just change it before runtime build with Project hook?
>
>Yes. I think that would be good. Thanks!
>
>By the way - your slogan lines - The only thing normal about database guys is their tables? Inaccurate. The only thing normal about great database guys is their tables. The rest might normalize at all. :)

ROFL
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform