Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically clearing the debug output window
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00270653
Message ID:
00271101
Views:
25
Hi Rick,

>That does the trick. Thanks, George.

Glad to help.

>It's interesting that _WClear didn't work when some of the other API commands do. For example, the following works to select the contents of the debug output window
lnwhandle = _WFindTitl('Debug Output')
>= _EdSelect( lnwhandle, 0, 9999)
>but attempting to clear it with either
= _EdDelete( lnwhandle)
or
= _EdCut( lnwhandle)
doesn't throw an error but doesn't clear it either.
>
>Evidently the contents of the debug output window are protected in some way from these functions. It sure would be interesting to know what VFP does when you "clear output window" from the debugger's menu. [ This is not a request for follow-up, just a comment < g >. ]

I think the reason that these functions don't work, is that they were designed for editing windows (prgs, hs, and txts). You can have some fun there. If I recall correctly, _WClear, etc. doesn't actually remove the text in these. It looks like it does, but actually just repaints the screen. What I find interesting is that _WFindTitl() works from the command window for the debugger, but not in a program.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform