I've only ever done this from C++ code, not integrated mapping or VB, but I
think the principle should be the same:
Call the "Do" method on the mapbasic application and pass in a string as an
argument.
In your MapBasic code write a "RemoteMsgHandler" method to catch the event
triggered by "Do". You can then get the string passed in using:
Dim CmdString as String
CmdString = CommandInfo( CMD_INFO_MSG )
and use the string to work out which internal function to call.
Good luck!
Gavin
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Alit
Sastrawan
Sent: 28 January 2002 08:26
To: [EMAIL PROTECTED]
Subject: MI-L Call MapBasic App from Visual basic
Dear All,
I have made an integrated mapping using visual basic,
then I have made a mapbasic application. my question
is how to call it from visual basic?
I have created a button in visual basic that i use to
call it, fisrt i write Run Application syntax and then
i confuse what next? how to call the function that i
created in mapbasic?
I hope You help me, please!
thank you very much fo the attention.
Regards,
Alit
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.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.