I am integrating a MapInfo map into a form in an Access database. I am trying to find out the number of tables loaded but NumTables() and MapperInfo() are both getting "unrecognized command" errors.
Is there another way to get the number of tables?
|
|
|
You have to use Mapinfo.Eval and MapInfo.Do and wrap the other requests. You can't simply call MapBasic functions in Integrated mapping, you need to do them through these two methods, if I remember correctly. So, something like this:
So use eval when extracting info:
Or something like that. And MapInfo.Do for executing a command:
Also, you can run menu commands in integrated mapping thus:
Again, untested code and from the memory banks of many years ago when I worked there on MapBasic projects. |
|||
|
|