Try something like this:

  Dim iWindowIDArray(), iWindowCount as Integer

  iWindowCount = 0
  for iWindow = 1 to NumWindows()
      if (WindowInfo(WindowID(i),WIN_INFO_TYPE) = WIN_MAPPER) then
         iWindowCount = iWindowCount + 1
         ReDim iWindowIDArray(iWindowCount)
         iWindowIDArray(iWindowCount) = WindowID(iWindow)
      end if
  next

-- 
Sympathies (sympatho [greek]: suffer with somebody) to all the folks
concerned by violence!

Franz-Josef Behr

------------------------------------------------------------------------
We all learn by sharing what we know... (R. DiBlasi)

Dr. Franz-Josef Behr                 Phone: ++49 / 7243 / 5641-20
GIS-Consultant                       Fax:   ++49 / 7243 / 5641-99
Graphservice GmbH                    EMail: [EMAIL PROTECTED]
Im Ermlisgrund 18                    D-76337 Waldbronn
Author of: Strategisches GIS-Management - http://www.gis-management.de
WWW: http://www.graphservice.de
Personal Home Page: http://home.pages.de/~fjbehr und
http://www.gis-news.de  [EMAIL PROTECTED]



----------------------------------------------------
D Couter wrote:

Hi there

How can I get a list of the WindowID's of all open
windows in Mapinfo - I want to create a tool so that i
can flick through them but can't fathom out the first
bit - i.e. listing all the open windows.  Any
help/advice gratefully received.



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to