Sang As well as the distance units in the program you also need to set the display distance units for your map window. This often crops up - MapInfo is very powerful in handling so many display systems and distance units at once but it can be confusing. The units used by the map window usually default to lat/long and miles unless you specify otherwise, or different user preferences have been set up on the machine.
As you open a new map window use "set map" to specify the distance and area units which you are using in your program, ie those you specify with "set distance units", "set area units" etc. This gives you complete control over the results. HTH Paul Crisp Syntegra Innovation Place Delta Bank Road Newcastle NE11 9DJ Tel 0191 461 4522 Fax 0191 460 1987 -----Original Message----- From: Sang Wang [mailto:[EMAIL PROTECTED]] Sent: 08 December 2002 18:34 To: [EMAIL PROTECTED] Subject: MI-L change the ruler unit I set the distance unit to "km" in my VC++ project with the following line: mapinfo.Do("Set Distance Units \"km\""); But the ruler still show distances in miles. How can I change the distance unit in the ruler window? Thank you. Wang Sang [EMAIL PROTECTED] GVU Center, College of Computing, Georgia Tech. Atlanta, Georgia 30332 _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 4457 ******************************************************************** This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you Check us out at http://www.syntegra.com ********************************************************************
