Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I Send SYS(3054) to a file?
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00237897
Message ID:
00237960
Views:
12
>Ed,
>
>Thanks for the great tips from everyone! I was able to implement your suggestions and it worked (it's sloppy because it still dumps it to the _screen object, but creating a temp window and activating it wasn't any better, since the user still see's the window). But I'm only using it to completely scan through the app and make sure the data is fully optimized.
>

Create the Window using DEFINE WINDOW, ACTIVATE WINDOW, and then use MOVE WINDOW so that it's off-screen. Now your user can't see it!

>So thanks to all again!
>-Ed
>
>
>>>Does anyone know how to send the results of SYS(3054) Optimization
>>>level to a file. When you turn it on it dumps strings to the active form, but I cannot seem to capture them to a file.
>>>
>>>I would like to turn it on and off in my application and capture the results for later review...
>>
>>Just before issuing it, try:
>>SET ALTERNATE TO Filename To receive output ADDITIVE
>>SET ALTERNATE ON
>>ACTIVATE SCREEN
>>
>>This will write to the default fox window; you could just as easily create a window and use that as a buffer, using ACTIVATE WINDOW. It seems to ignore the SET CONSOLE setting, an annoyance, and doesn't seem to write to DEBUGOUT, either, but does echo the results to the alternate file if one has been established and opened. When you finish recording your data, remember to SET ALTERNATE OFF and SET ALTERNATE TO to force the text file to be closed.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform