Losing values upon combining two identical .tab files via MapBasic

29 views
Skip to first unread message

Alan Carr

unread,
Mar 16, 2016, 11:50:39 AM3/16/16
to MapInfo-L

I am using mapbasic to perform some calculations on a table. Everything is fine until I combine two .tab files.

enter image description here

Both files have identical table structures, however upon combination some numerical (float) values are being set as 0.

Values from HUNDRED_CL:

enter image description here

Values after combining the files:

enter image description here

The CR1 data is fine, but as soon as I append the CL1 data to it, some TO values become 0, can somebody assist?

Table structures for reference:

enter image description here

enter image description here


Regards,

Alan

Uffe Kousgaard

unread,
Mar 16, 2016, 12:24:41 PM3/16/16
to mapi...@googlegroups.com
Hi,

Try to rename the TO field to something else.
You may have hit a keyword with an unfortunate result.

Regards
Uffe Kousgaard


Alan Carr wrote:
--
--
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.
For more options, visit https://groups.google.com/d/optout.

Alan Carr

unread,
Mar 17, 2016, 5:35:04 AM3/17/16
to MapInfo-L
Hi Uffe,

I've changed TO to CHO but unfortunately this has not resolved the problem

Regards,
Alan

Timothy Mashford

unread,
Mar 17, 2016, 6:42:55 AM3/17/16
to mapi...@googlegroups.com

How are you doing the append? i.e. what's your code?

Alan Carr

unread,
Mar 17, 2016, 6:50:56 AM3/17/16
to MapInfo-L
Here is the section of code where the append occurs. Everything (each individual file) is fine up until this point

Albert Tabino

unread,
Mar 17, 2016, 11:13:44 AM3/17/16
to mapi...@googlegroups.com
try packing all tables before you run your script....maybe that would fix it....cheers!

Timothy Mashford

unread,
Mar 17, 2016, 4:51:49 PM3/17/16
to mapi...@googlegroups.com
Your code is only updating to COL9. The 'TO' column is number 10.
Reply all
Reply to author
Forward
0 new messages