It works if you run from ON KEY LABEL
ON KEY LABEL f7 HIDE WINDOW command
BTW, it works from command window also. If you add delay in your macro, you'll see that command window disappears. However VFP reactivates command window after macro is finished.
>Hi Sergey
>
>That works, but only from within a program and not the macro.
>
>(i.e. I cannot get the command window to close from within itself where I am running the macro)
>
>Any ideas.
>
>Geoff
>>Try
HIDE WINDOW command
>>
>>>Hi
>>>
>>>I have a number of macros which I use to do things like builds, set home directory etc and was wondering if there is a way to close the command window.
>>>
>>>I know that{Cntrl-F2} opens it but is there a way to close it from withing the macro???
>>>
>>>regards
>>>Geoff Scott
--sb--