Dim I as integer
For I from 1 to NumWindows()
If WindowInfo(I,Win_Info_Name) = "Redistrict" then
Close Window WindowID(I) Interactive '!!!!!! Must be
[Interactive]
End If
Next
-----Original Message-----
From: Nabors, Steve [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 10, 2005 12:53 PM
To: Alan Gunn
Cc: [email protected]
Subject: RE: MI-L Close window statement
Either your "redistricting" window is graphical(map, layout, etc) or
tabular(browser) most likely.
Assuming it's the front window, you could use the following command to find
out:
Note WindowInfo(FrontWindow(),WIN_INFO_TYPE)
If it is a table or map and your window you want to close has a unique
name, say "Redistrict", you should be able to close it using its name in the
following code:
Dim I as integer
For I from 1 to NumWindows()
If WindowInfo(I,Win_Info_Name) = "Redistrict" then
Close Window WindowID(I)
End If
Next
Good luck
-----Original Message-----
From: Alan Gunn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 10, 2005 10:02 AM
To: [email protected]
Subject: MI-L Close window statement
Hello all,
I am trying to use the close window command to close a redistricting window,
but I am having trouble. It says in the help that when you want to close
something such as a mapper or browser, you need to include the window id.
Would the district browser fall under browser? How do you obtain the window
id (when I try the windowid() or the frontwindow command it doesn't
recognize)?
Thanks for any help with this,
Alan
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com | To
unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 16408
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 16410