John

>From how I understand your question, could this be the solution?

HTH

Terry
_______________________________
  Dim lnWindowID as Integer, lnNoLayers, I as SmallInt, lcWindow as
String

  lcWindow              = "YourSubjectWindowName"       ' could be a
window name supplied by a param.
  lnWindowID    = FrontWindow()  
  lnNoLayers    = MapperInfo( lnWindowID, MAPPER_INFO_LAYERS) 
  I                     = 1
  Do while I <= lnNoLayers
        If LayerInfo( lnWindowID, I, LAYER_INFO_NAME) = lcWindow then
                Note "Found Window " + lcWindow 
                I       = lnNoLayers + 1                        ' to get
out of the loop
        Else
                I       = I + 1
        End If
  Loop
 

-----Original Message-----
From: John Polasky [mailto:[EMAIL PROTECTED] 
Sent: 25 May 2005 20:31
To: Terry McDonnell
Subject: MI-L Detecting Windows by String Variables

Greetings List:

Is there a simple way to have MapBasic detect the existence of a custom
named window (where the name has been stored in a string variable)?


Thanks!



John E. Polasky
The Schwan Food Company

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 16570





---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 16576

Reply via email to