or you could put the expression in the label itself... ################ Left$(VALUE, Len(VALUE)*Int(VALUE mod 5=0)) ################
simply put, the expression on the right side of the Left$ function will multiply the Length of the VALUE string by 1 if the expression is TRUE, otherwise by 0 if it's false. if multiplied by 0, the label will obviously return nothing. that oughta werk methinks...? -----Original Message----- From: Upinder Mutti [mailto:[EMAIL PROTECTED] Sent: Tuesday, 16 December 2003 12:58 PM Cc: 'MapInfo List' Subject: RE: MI-L Labelling contours Thanks robert That's exactly what I needed. Upinder -----Original Message----- From: Robert Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, 16 December 2003 12:31 PM To: Upinder Mutti Cc: MapInfo List Subject: Re: MI-L Labelling contours You could select the contours where value mod 5 = 0 Into IndexContours Then add that query to your map. You can then use a different colour for that layer as well as label them. There was a cool trick that imitated the IIF function of VB using a true/false and integer division on the list a while ago, but it escapes me at present. r On Tue, 16 Dec 2003 11:55:23 +1100, Upinder Mutti <[EMAIL PROTECTED]> wrote: > Hi all > > Mometarily experiencing a brain freeze. > > Is there a good way (expression) for labelling contours in MI? I have > 1m contour table with a "value" field representing the height of the > contours. I want to put a label on every fifth contour so the > contours are labelled every 5 meters.....its sounds very simple but > the answer escapes me. > > Upinder Mutti > Cardno Willing > Sydney Australia. > www.cardno.com.au > > > --------------------------------------------------------------------- > List hosting provided by Directions Magazine | www.directionsmag.com | > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > Message number: 9565 > -- Robert Crossley Agtrix P/L 9 Short St New Brighton 2483 Far Southern Queensland AUSTRALIA 153.549004 E 28.517344 S P: 02 6680 1309 F: New Connection M: 0419 718 642 E: [EMAIL PROTECTED] W: www.agtrix.com W: www.wotzhere.com --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 9571 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 9572
