Sure David,
'**********************************************************************************************''
'Returnerer TRUE hvis vindue WinID findes...
'**********************************************************************************************''
Function WINGetWindowID(ByVal szWinName As String) As Integer
Dim i, nWID As Integer
OnError GoTo ErrorOccured
WINGetWindowID = 0
If szWinName = "" Then
Exit Function
End If
For i = 1 To NumWindows()
nWID = WindowID(i)
If WindowInfo(nWID, WIN_INFO_NAME) = szWinName Then
WINGetWindowID = nWID
Exit Function
End If
Next
Exit Function
'-------------------------
ErrorOccured:
Note "Some error happend: " & Error$()
End Function
**************************************************************************************************
Peter Horsb�ll M�ller
GIS Developer
Geographical Information & IT
COWI A/S
Odensevej 95
DK-5260 Odense S.
Denmark
Tel +45 6311 4900
Direct +45 6311 4908
Mob +45 5156 1045
Fax +45 6311 4949
E-mail [EMAIL PROTECTED]
http://www.cowi.dk
-----Original Message-----
From: Eagle, David A [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 3:29 PM
To: '[EMAIL PROTECTED]'
Subject: MI-L WindowID
Listers,
Can anyone tell me if the following is possible?
In MapBasic I am opening a map window and naming it "Main" a second window also opens
which I call "Overview". Is it possible to get the WindowID of the "Main" window and
save it to a variable? Obviously each time I open the window it has a different
WindowID. I have done this before but I'd like to know how others get the result so
I'm trying not to be too leading with my question.
Basically in plain English can I ask MapInfo "Hey MapInfo, what's the Window ID of the
Map Window I've named Main?"
Any help greatly appreciated...
Thanks, Dave
This email and any attached files are confidential and copyright protected. If you are
not the addressee, any dissemination of this communication is strictly prohibited.
Unless otherwise expressly agreed in writing, nothing stated in this communication
shall be legally binding.
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 10893
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 10894