>Hi Everyone,
>
>Does anyone know how you can retrieve the window handle of a window opened by MODIFY COMMAND?
>
>The reason I need it is to programatically save the prg file that I am editing using the _EdSave function.
>
>What I have is a two windows defined using Define Window, and have opened up the procedure using the following :
>
>
>MODIFY COMMAND test.prg ;
> NOMENU NOWAIT WINDOW wEditor IN WINDOW wParent SAVE
>
>
>When I try to call the _WGetPort method after that to get the window handle, it only gets the window handle of the parent window.
>
>Is there anything I could do to get the editor window handle?
>
>Many thanks,
>
Michael,
Are you using Foxtools with this? AFAIK, _WGetPort() returns the internal VFP handle to the window (known as the whandle).
George
Ubi caritas et amor, deus ibi est