Problem with paths to tables in MapInfo 2023, Windows 11

50 views
Skip to first unread message

Evgeny Kleiman

unread,
Nov 3, 2024, 8:07:05 AM11/3/24
to MapInfo-L
Hello,
I have a project in MapBasic that is designed to work with tables, particularly uses OPEN TABLE and COMMIT TABLE statements. The last version of MapInfo that was in use was MapInfo 2019 and all worked fine. Now when I try to use the same code I get a number of problems with these statements. All MapInfo tables (*.tab,...) are found in the same directory as MBX-file that is executed.
 First of all on 
  OPEN TABLE "Table1",  
for example (that worked earlier) I get a message that this file does not exist, so I need to change it to
Open Table ApplicationDirectory$()& " Table1  .tab" as Table1
and this change is not required in all places but only in some of them.
There is another problem with COMMIT TABLE. When I use
Commit Table RoadsTable As "Table2"
for example  then the table is saved in C\Windows\System32 directory instead of current directory of the MBX- file as it was in previous version of MapInfo.
So I have questions:
1. Are there some warnings about such changes?
2. Is there a way to define in one place that I always want to open and commit tables in current directory (or other fixed directory)?
Thank you

Evgeny Kleiman

unread,
Nov 3, 2024, 2:14:06 PM11/3/24
to MapInfo-L
Ok,  I think that I found an answer here: https://groups.google.com/g/mapinfo-l/c/DZq1Pce5u-s
It is written particularly :

Fully Qualified Paths

When creating new tables or files through MapBasic code, you need to specify a fully qualified file path.

We no longer allow you to create a table in the current directory by leaving out the path of the tab file.

Uffe Kousgaard

unread,
Nov 3, 2024, 2:23:04 PM11/3/24
to mapi...@googlegroups.com
Hi,

Yes, that is it.
It is less than one week ago, I updated the source code for ToolBox (https://www.routeware.dk/toolbox.php) for the same reason.

Kind regards

Uffe Kousgaard
routeware.dk
--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en

---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mapinfo-l/aaab67e7-25bf-49bf-a9e8-1bb0d17330e0n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages