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
![](http://img292.imageshack.us/img292/9621/pvarproblemou0.gif)
here these codes to test for you.
first works. second not.
//1:-------------------------------------------------
global proc myProc()
{
string $scriptWin = $gCommandWindow;
};
//2:-------------------------------------------------
string $scriptWin = $gCommandWindow;