MapInfo Pro Developers User Group

Welcome to the MapInfo Pro Developers community!  We are a group dedicated to the discussion and understanding of MapBasic and .Net MapInfoPro AddIn development. Bring your questions and ideas here. This group includes several members of the Pro development team from around the world.

Please feel free to start a discussion in the discussion tab or join in a conversation.

Product Information  Ideas Portal  MapInfo Community Downloads

Discussions

Members

Resources

Events

 View Only
  • 1.  How to get an object (CreartePoint()) int my simple table.

    Posted 08-02-2017 16:01

    I realize this may be a novice question, but I cannot figure this out.

    I create a very simple MI table.

     

    Create Table Test (LineNum Integer) File "D:\temp\TestFile.tab"

     

    Later, I do an Insert Into to update the line number. I also try to put an CreatePoint object in.

     

    Insert Into Test (LineNum, Obj) Values (1, CreatePoint(122.04753, -47,23765))

     

    But it does not work and gives me an error: "Field Obj does not exist in table Test. "

     

    But how do I create a column/object in a file? There is no "object" type when you create a table. So how do I get this object of a Point into my table?



  • 2.  RE: How to get an object (CreartePoint()) int my simple table.

    Posted 08-02-2017 13:19

    I was stupid and was forgetting to do Create Map for the table. My bad.



  • 3.  RE: How to get an object (CreartePoint()) int my simple table.

    Employee
    Posted 08-02-2017 13:43

    Bill Glad we had the Streaming session today. Good talking to you and glad we were able to figure it out the steps together.



  • 4.  RE: How to get an object (CreartePoint()) int my simple table.

    Employee
    Posted 08-03-2017 07:46

    Hi Bill, I made the following article on How to Create a New Table from scratch and create points using the MapBasic Window. Let me know if you can use this as a reference:

    See this article: https://li360.pitneybowes.com/s/article/ka180000000DCgAAAW/How-to-create-a-New-Table-and-Create-Points-using-the-MapBasic-Window



  • 5.  RE: How to get an object (CreartePoint()) int my simple table.

    Posted 08-03-2017 10:27
    Yeah, that works. It is just a recap of what we found in another article and what we did. Bill Lofgren Senior Software Engineer C Squared Systems