WOUTPUT() doesn't satisfy your needs ?
Also activating screen is probably to print something. If so you could use _screen.print() instead w/o changing the output,active window.
Cetin
>Yes, those were the commands I referred to in my original message. The problem is that none of them will tell me the name of the currently active window.
>
>All I want to do is this:
>
>lcOldWindow = WACTIVE()
>ACTIVATE WINDOW SCREEN
>* Run some code
>ACTIVATE WINDOW (lcOldWindow)
>
>The problem is that "WACTIVE()" isn't a real command and I don't know what to put there. It just basic save and restore to put things back how I found them. I don't understand why it's such a hard thing to do. Is there no command that will tell me the name of the active window?
>
>Thanks,
>
>Michelle
>
>
>>Sorry I couldn't get the scenario. woutput() returns output window and wontop() on top one. woutput() might be invisible so check with wvisible() (and probably wexist()).
>>Cetin