"Warren Vick, Europa Technologies Ltd." <[EMAIL PROTECTED]> wrote: Hello Sal,
Unfortunately there is no CreateEllipse() function in MapBasic. There is a "create ellipse" statement but that cannot be used directly in an SQL insert statement. There is a CreateCircle(x, y, radius) if that's any use, alternatively you could create a function of your own that returns an ellipse and use that in the SQL statement. The same is true for "CreateRectangle" but there is a work-around there. You can create a line between opposite corners of a rectangle and then pass that to the minimum bounding rectangle function, MBR(), to get a rectangle. e.g. Insert Into mytable (Obj) Values (MBR(CreateLine (x1, y1, x2, y2))) Warren, Thank you very much for that. I should have realised the difference between Create Ellipse with a space and CreateEllipse without a space, which I hadn't noticed. The workaround for a rectangle with MBR will be very useful, and I will have to do the ellipse with a separate function. Thanks again, Sal
