Hi there,

I have what should be a very simple MapBasic task, but I can't get the syntax 
right.

To insert a point object into a table, I use:

Insert Into mytable (Obj) Values (CreatePoint x1, y1)

and for a line object I use:

Insert Into mytable (Obj) Values (CreateLine (x1, y1, x2, y2))

and this always works fine.  But I can't create a Rect or Ellipse object the 
same way.

I have tried:

Insert Into mytable (Obj) Values (CreateEllipse (x1, y1, x2, y2))

Insert Into mytable (Obj) Values (CreateEllipse (x1, y1) (x2, y2))

Insert Into mytable (Obj) Values (CreateEllipse (x1, y1), (x2, y2))

all of these give me a syntax error when I compile, and the same with 
CreateRect.   I must be doing something wrong, but what?

Sal

Reply via email to