Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compiler directive only for dev time
Message
 
À
16/09/2014 15:07:12
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:
01609360
Vues:
134
>It works OK, but I want it to not even exist in the exe at runtime. Only at design time.

LOL!

So you want MAGIC? :-)

There's no way to have 'dynamic' conditional code inside of VFP (or any other language I know of) since the code is

I don't understand why you wouldn't want the plain IF logic since that clearly works. The code in question would never be executed - why would you care if it's there.

The alternative is to store the code you're trying to execute externally and run it only when your < debugCondition > is valid. But you still end up with a small block of code that is conditional.

Or simply:
TRY 
   DO DebugOnlyFile.fxp
CATCH
ENDTRY
If the file is there it works, otherwise it doesn't.

+++ Rick ---

>>>Why not just pure IF?
>>>
>>>IF _vfp.startmode=0
>>> ...
>>>ENDIF
>>>
>>
>>Borislav is right, just use the IF. I've already used this, and works ok.
>>
>>Regards.-
>
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform