Mike Yearwood
Toronto, Ontario, Canada
Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2008 Server
>>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
>
>Are you still intersted in a solution? i'ved picked up your problem to do something similar for me. I can show you haw to use project to do this. Just let me know.
Christof's response led me to a workable solution. I'm open to listening to any other possible ways.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement