>This does give the form name but the way I used it before it would return the value of forms even from the command window and was a one line solution when executed with a zero parameter. any thoughts? -thanks for your help.
It sounds like some kind of utility rather than foxpro command. For the current window/screen you can use
? WONTOP()
? WOUTPUT()
--sb--