Hi David
                why don't u make a ActiveX DLL of your wondorous code in VB
and then call that function in your MapBasic application....

Regs
Kaul



                                                                                       
                                            
                    "Cautley, David/PDX"                                               
                                            
                    <[EMAIL PROTECTED]>                  To:     "'MapInfo List 
([EMAIL PROTECTED])'"                    
                    Sent by:                             
<[EMAIL PROTECTED]>, "'Mapinfo Tech Support (Mapinfo Tech       
                    [EMAIL PROTECTED]        Support)'" 
<[EMAIL PROTECTED]>                                      
                    onsmag.com                           cc:                           
                                            
                                                         Subject:     MI-L Integrated 
Mapping:  Calling a function in MBX          
                                                                                       
                                            
                    12/11/01 07:02 AM                                                  
                                            
                    Please respond to "Cautley,                                        
                                            
                    David/PDX"                                                         
                                            
                                                                                       
                                            
                                                                                       
                                            




This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.


Is is possible to call a function inside a running MBX from Visual
Basic?

Consider the following simplified MBX:
==============================================================
Declare sub Main()
Declare Sub Foo(strSomething as string)

Sub Main
'       make some menus, etc....
'       stay loaded when you're done
'
End Sub
Sub Foo(strSomething as string)
'
'       do wonderous things...
'
End Sub
==============================================================

Is there some way, inside Visual Basic, that I can call "Foo"?

....   Launch Mapinfo, stick handle in mMIInstance
'   run the mbx...
        mMIInstance.do "run application FooHolder.mbx"
'
'       now, what can I do to call foo?  The following doesn't work, as
any function call from the mapbasic window is doomed...

        mMIInstance.do "call Foo(HelloWorld)"

Thanks.

David Cautley
Software Architect
CH2M HILL, Inc. -- Portland, Oregon USA Office
(503) 235 - 5022 x 4478    dcautley @ ch2m.com




_______________________________________________________________________
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.






_______________________________________________________________________
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