Dan,
Here's the bare bones of some VB code which you might find useful.
Dim objMI As MapInfo.MapInfoApplication
Dim objMB As Object
Dim objMBGlobals As Object
Set mobjMI = GetObject(, "MapInfo.Application")
For Each objMB In objMI.MBApplications
If UCase(objMB .Name) = "XYZ.MBX" Then
Set objMBGlobals = objMB.MBGlobals
Exit For
End If
Next
MsgBox "Global value is: " & objMBGlobals("global_variable_name").Value
Hope its useful,
Richard Burkmar
ICL
-----Original Message-----
From: Danny Irwin [mailto:[EMAIL PROTECTED]]
Sent: 11 August 2000 11:50
To: [EMAIL PROTECTED]
Subject: MI global variables
Dear users,
Could anyone provide any assistance regarding global variables and
their interaction with Visual Basic. We can't seem to pass a value
in a global variable from MapBasic into a VB project, despite the
user guide telling us that it's easy with DDE!
Does anyone know why we might be experiencing problems?
Thanks
Dan Irwin
****************************************************************************
****
****************************************************************************
****
Transport For London - Street Management
The contents of the e-mail and any transmitted files are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Transport for London hereby excludes any warranty and
any liability as to the quality or accuracy of the contents of this e-mail
and any attached transmitted files. If you are not the intended recipient,
be advised that you have received this e-mail in error and that any use,
dissemination, forwarding, printing or copying of this e-mail is
strictly prohibited.
****************************************************************************
**
****************************************************************************
**
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]