Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling HELP
Message
De
03/12/2004 20:19:56
 
 
À
03/12/2004 18:57:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 7
Divers
Thread ID:
00966873
Message ID:
00966881
Vues:
12
>If you create an APP that has its own custom HELP file you can issue
>
>set help to mynewhelp.hlp
>
>when the program starts up and everything works fine. Then when the APP exits (on the development PC) you can issue
>
>set help to
>
>so that the default fox help is available to continue development assistance. I usually place this latter line in the destroy event of the main form so that it executes when I shutdown the test run. This practice however creates a problem when the APP is deployed because the
>
>set help to
>
>command looks for the foxhelp.chm file which dosen't exist on the users PC. Is there a better way to deal with this? I suppose it could be trapped with an error handler but that seems like overkill.
>
>Thanks for any ideas.

I use what is probably poor programming technique, but works for me.

I have an environment variable on my development machine. Any code that is supposed to work only on the development machine is wrapped in a IF block
IF GETENV("whatever") = "whatever"
     DO mycode
ENDIF
Not cutting edge but it gets the job done.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform