Here is a demo of the map basic project combining 
MainTest.mb and Dopey.mb into an application MainTest.mbx:

'*********************************
' MainTest.mbp

[LINK]
Application=MainTest.mbx
Module=MainTest.mbo
Module=Dopey.mbo

'*********************************
' MainTest.mb

Include "Dopey.def"
Declare Sub Main

Sub Main

        Note "Main"

        ' Call Sub in Dopey.
        Call SubCall

        ' Call Function in Dopey.
        Note FuncCall()                                 ' This won't work
without the "()".

        ' Show the global from Dopey.
        Note m_LookMa

End Sub

'**********************************
' Dopey.mb

Declare Sub SubCall()
Declare Function FuncCall() As String

Global m_LookMa As String

Function FuncCall() As String
        m_LookMa = "Hello World!"
        FuncCall = "FuncCall Ran."
End Function

Sub SubCall
        Note "SubCall Ran."
End Sub

'**********************************

-----Original Message-----
From: Marty Sprenz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 9:05 AM
To: 'Canfield, Andrew'; 'Mapinfo List'
Subject: RE: MI-L MapBasic Question


Got it!

Thank you for you valuable time,
Marty

-----Original Message-----
From: Canfield, Andrew [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 28, 2004 10:13 AM
To: 'Marty Sprenz'; 'Mapinfo List'
Subject: RE: MI-L MapBasic Question

It will create an .mbx but you probably have a call or declare to a
function
it can't find in the current module. It then assumes it's part of a
project
so it creates an .mbo which is the file extension for a "MapBasic
Object"
you can create an .mbx from .mbo's by linking them in one project. It
allows
MapBasic developers to modularize their code so individual .mb files do
not
get so large as to be impossible to read and maintain.

-----Original Message-----
From: Marty Sprenz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 6:55 AM
To: 'Mapinfo List'
Subject: MI-L MapBasic Question


How come the MapBasic 7.0 program I'm working with will only create an
MBO and not an MBX?  What's an MBO?

Marty


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

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

*******
IMPORTANT
 
Confidentiality: This communication is intended for the above named
person and is confidential and/or legally privileged any opinion
expressed in this communication are not necessarily those of the
Egyptian company for Mobile Services (MobiNil). If it has come to you in
error you must take no action based on it, nor must you copy or show it
to anyone: please delete/destroy and inform the sender immediately.
 
No Responsibility: MobiNil is not responsible for any political,
religious, racial or partisan opinion in any correspondence conducted by
its domain users. Therefore, any such opinion expressed, whether
explicitly or implicitly, in any said correspondence is not to be
interpreted as that of MobiNil.
 
Monitoring/Viruses: MobiNil may monitor all incoming & outgoing e-mails
in line with current legislation. Although we have taken steps to ensure
that this e-mail and attachments are free from any Virus, we advise that
in keeping with good computing practice the recipient should ensure they
are actually virus free.
 
The Egyptian Company for Mobile Services (MobiNil) www.mobinil.com
The World Trade Center: 1191 Corniche El Nil, Boulaq - Cairo - Egypt 
Telephone: +20 2 574 - 7000 or + 20 12 320 - 0000 
Fax: +20 2 574 - 7111 or +20 12 320- 7111
*******



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


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

Reply via email to