Hi All,

 

Thank you very much for all the replies. Had so much trouble including MapBasic.bas and finally I managed to include MapBasic.bas into the VB project. For those whom may be interested, here's how I did it.

 

1) Have the file MapBasic.bas with you. This can be downloaded from MapInfo website or from the sample applications from MapInfo.

2) Open up your VB and load the VB project. On the "Project Explorer", right click and click on "Add"

3) After clicking on "Add", add a module to it and then a dialog will pop-up. Click on the "Exisiting" tab on the dialog and look for the location where the MapBasic.bas is located. Then click "OK"

 

To use the keywords/constants found in MapBasic.bas, you may follow below example:

in MapBasic: SelectionInfo(Sel_Info_Nrows)

in VB: mi.Eval ("SelectionInfo(" & Sel_Info_Nrows & ")")

To All, if i missed out anything, sorry for the mistake. And if possible, please do highlight my mistakes.

Thank you.


From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [email protected]
Subject: RE: [MI-L] Integrated mapping and MapBasic.bas
Date: Mon, 29 May 2006 08:37:10 +0800

Alvin

 

If you’re a beginner with Integrated Mapping and the use of VB6 with MapInfo, it would be best to download the example code files for VB and work through them.

http://extranet.mapinfo.com/products/Download.cfm?ProductID=1063&productcategoryid=

You may need to register for a “site pass” to get to the next stage from that page.

 

That will get you to the place for some download links. As expected, the example code hasn’t changed for several years. The files are very small.

Then you can see where the Mapbasic.bas is included in a VB6 project (Trey’s advice on restructuring Mapbasic.def to Mapbasic.bas is not necessary, since MI has done that for you already).

 

IL Thomas
GeoSciSoft  - Perth, Australia



Join the next generation of Hotmail and you could win the adventure of a lifetime Learn More.
_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to