Select * from <TABLE> where Str$(Obj) = "Polyline" into SELECTION
 
Other objects can be selected by changing "Polyline" to:
"Point"
"Line"
"Region"
"Text"
and I haven't tested:
"Arc"
"Ellipse"
"Rectangle"
 
but they may also work
 
The alternative syntax is (with thanks to Jaques Paris' wonderful "Miniguide to the MapBasic Window":
 
Select * from <TABLE> where Str$(ObjectInfo(Obj,1)) = "4" into SELECTION
 
and are full list of objects is:
 
1    Arc
2    Ellipse ( incl Circle)
3    Line
4    Polyline
5    Point
6    Layout Frame
7    Region
8    Rectange
9    Rounded rectange
10  Text
 
This works quite happily as an "SQL select" query as well
 
Regards
 
 
Russ
 
----- Original Message -----
From: Paul Walsh
Sent: Tuesday, August 29, 2000 9:37 AM
Subject: MI Selecting Polylines

Good afternoon.
 
I was wondering if anyone would know how to use the MapBasic window to select only polylines in a mapper.  I have a table with regions and unfortunately, the polylines which form the borders of these regions are still present.  I want to select all the polylines so that I can delete them. 
 
Thanks in advance,

------------------------------------------------------------------------------------------------------------
Paul J. Walsh                                                                   Environmental Dynamics Inc.
GIS Technician                                                                                 Prince George, BC
[EMAIL PROTECTED]                                                                      (250) 562-5412
------------------------------------------------------------------------------------------------------------

Reply via email to