I am trying to find number of active analysis window. The code below never creates variable activeWin even though I have one of the analysis windows activated.
Any help would be greatly appreciated, thanks.
AB = CreateObject( "Broker.Application" );
Newa = ab.analysisdocs;
n=ab.activewindow;
cnt=newa.count;
for( i = 0; i <= cnt; i++ )
{
if(newa.item(i)==n)
{
activeWin=i;
}
}type or paste code here