Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Suggestion: AExecutant testing from command window
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Suggestion: AExecutant testing from command window
Miscellaneous
Thread ID:
00647353
Message ID:
00647353
Views:
43
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
Next
Reply
Map
View

Click here to load this message in the networking platform