MapInfo Pro

Welcome to the MapInfo Pro community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Here are some useful links where you can find more information:

Product Announcements  Product Documentation  Ideas Portal

Discussions

Members

Resources

Events

 View Only
  • 1.  Using ObjectInfo in update column crashes Mapinfo Pro 15.0

    Posted 10-08-2018 10:02

    If I use ObjectInfo to add Pen styles to a column in Pro 15.0 using the Update Column function, it crashes Mapinfo. A colleague also has this problem.

    At first I thought that this was due to the table size, but there are only around 5000 polygon objects.

    I have tried this again on Pro 16.0 and it works, another colleague who has 12.5 is also able to do this update.

    I have also successfully used ObjectInfo in the Mapbasic window to do this query on 15.0, it works and I can then update a column in the table with this result.   Just can’t use the Update Column method. Any thoughts as to why this might be an issue with 15.0 and not with other versions?



  • 2.  RE: Using ObjectInfo in update column crashes Mapinfo Pro 15.0

    Posted 10-09-2018 19:01

    Are you using the same table in each version? A reason that ObjectInfo can fail when executed via Update Column is if rows in the table have no spatial object attached.



  • 3.  RE: Using ObjectInfo in update column crashes Mapinfo Pro 15.0

    Employee
    Posted 10-10-2018 03:58

    Make sure that you are wrapping the ObjectInfo() function in the Str$() function to make the return value is converted to text/string:

    Update SOME_TABLE Set SOME_COLUMN = Str$(ObjectInfo(OBJ, 2))