strange error: gCommandWindow defined or not ?
if this variable defined ;
why gives error in a global proc ?
if this variable not defined;
why gives commandWindow result when executed as single line ?
thanks

here these codes to test for you.
first works. second not.
//1:-------------------------------------------------
global proc myProc()
{
string $scriptWin = $gCommandWindow;
};
//2:-------------------------------------------------
string $scriptWin = $gCommandWindow;