Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Suggestion: AExecutant testing from command window
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Suggestion: AExecutant testing from command window
Divers
Thread ID:
00647353
Message ID:
00647353
Vues:
44
Hi Kevin,

I would like to suggest the following change in the executant layer:

* Library: KExecutant.vcx
* Class: KExecutant
* Method: SetCOMEnvironment()

Here you have hardcoded SET RESOURCE OFF and other SETs. When testing the executant from the command window, this switches off my resource file and doesn't switch it back to on afterwards. So I have to do that manually after each test.

How about calling SetComEnvironment only, if the code is being run inside a COM DLL? Even the name itself suggests this - Set**COM**Environment <g>.

Here's the code for my suggestion (kexecutant.Init):

Old code:
This.CreateDataSession()
This.SetCOMEnvironment()
New code:
This.CreateDataSession()
IF MMIsComObject()
	This.SetCOMEnvironment()
ENDIF
Regards,
Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform