John,

I can see a couple of things here.

1) The Create Ellipse statement will not work on a values clause as it is
not a function per se.
You need to Dim an Object Variable and then put the ellipse into this
variable. Then use the variable to insert into the table.

2) The columns being inserted must match the values lists

I would say you need something like:-

Dim oEllipse as Object

Create Ellipse into Variable oEllipse
((X2, Y2), (X3, Y3)

Insert Into OdysseyCells (Col1,col2,col3,col4,col5,col6,Obj)
Values ( B, C, D, E, F, G,oEllipse)

Also remember that you have to use the create map statement after the create
table statement to create the files to hold objects.

I hope this helps

Regards

Martin

----- Original Message -----
From: Hart, John <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 04, 2000 9:11 PM
Subject: MI-L Help with Insert Into and Create Ellipse Command


> I am writing a MapBasic App that takes a text file and creates a MapInfo
> Table.  I have successfully created the table in MapBasic but can't figure
> out how to add records to it.  The records need to have 6 different
columns
> of data as well as a mapable object.
>
> >From reading the reference guide, it sounds like I can issue a command
like:
>
> Insert Into OdysseyCells (Obj)
> Values ( Create Ellipse(X2, Y2, X3, Y3), B, C, D, E, F, G)
>
> Where OdysseyCells is the name of the new table
> X2, Y2, X3, and Y3 are float
> B, C, D, E, F, and G are String
>
> But MapBasic gives me the following error:
>
> Found [ellipse] while searching for [)]
>
> Any hints on solving this problem are appreciated,
> John
>
>
> _______________________________________________________________________
> List hosting provided by Directions Magazine | www.directionsmag.com |
> To unsubscribe, send e-mail to [EMAIL PROTECTED] and
> put "unsubscribe MapInfo-L" in the message body.
>



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to