I'll second the suggestion of using the Stylist utility. It is excellent. I
have it set to autorun all the time.

However, it still should be easier to SQL this as sometimes one might need
to perform such a task in his/her own code or utility.

One should know how to do the laundry before they hire a maid to do it. If
the maid craps out, your wearing stinky cloths.  If you only knew the syntax
to operate the washing machine and dryer!!!  :))

David



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lawley,
Russell S
Sent: Friday, December 23, 2005 8:54 AM
To: Bill Thoen; [email protected]
Subject: RE: [MI-L] Fixes and New MapInfo Features



merry chrimbo  one and all....

as for colour-of-objects selects.. yep  the syntax is a pain... so why not
use the excellent  'stylist'  application  from the equally excellent
directionsmag tools & resources  area

;-)



r

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Bill
Thoen
Sent: 23 December 2005 14:27
To: [email protected]
Subject: Re: [MI-L] Fixes and New MapInfo Features


On Fri, Dec 23, 2005 at 11:09:03AM +0100, Peter Horsbøll Møller wrote:
> Seems that I didn't check my syntax before posting this statement to the
list, sorry for that.
> 
> Here is the correct:
> Select * From MYTABLE
>    Where Val(Str$(StyleAttr(ObjectInfo(OBJ, 3),2))) = RGB(0,0,255)
> 
> Please note that this statement will only work on tables:
> - contains only closed objects
> - without records with no objects
> 
> So to be sure you should start with these two statements:
> Select * From MYTABLE Where OBJ INTO MYTABLE

Kind of makes my point that it's not as simple as using pure SQL where the
color of objects is an attribute in the data instead of being an embedded
property of the project. The following is much easier:

SELECT * FROM MYTABLE WHERE color = "blue" or
SELECT * FROM MYTABLE WHERE color = 255

(depending how you code the field 'color')

_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l


*********************************************************************
This e-mail message, and any files transmitted with it, are
confidential and intended solely for the use of the addressee.
However, the information contained in this e-mail may subsequently
be subject to public disclosure under the Freedom of Information
Act 2000 and, unless the information is legally exempt from disclosure,
the confidentiality of this e-mail and your reply cannot be guaranteed.
If this message was not addressed to you, you have received it in
error and any copying, distribution or other use of any part of it is
strictly prohibited. Any views or opinions presented are solely those
of the sender and do not necessarily represent those of the British
Geological Survey. The security of e-mail communication cannot be
guaranteed and the BGS accepts no liability for claims arising as a
result of the use of this medium to transmit messages from or to the
BGS.                               http://www.bgs.ac.uk
*********************************************************************


_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

-- 

Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.5/212 - Release Date: 12/23/2005
 

-- 
Outgoing mail is certified Virus Free
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.5/212 - Release Date: 12/23/2005
 


_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to