Hi Anitra,

Where exactly is it that the distance is miles ?

If it is in your map windows, then it is because the "Set Distance Unit ..
" doesn't effect the existing and new map windows.
If you want to make sure that the distance unit within your maps are "km"
you'll have to set this when the map is opened using this command:

Set Map
     Window nWID
     Distance Units "km"

Where nWID is the WindowID of the map window.

Another way around is to copy the MapInfow.prf file from the Windows folder
(C:\Windows or C:\WinNT ... on Win2000 or when using MapInfo v6.5 it's a
bit more tricky) from a computer where you are running MapInfo Pro with the
preferences set to "metric distance units" to the computer with the MapInfo
Runtime.

And a third way would be to include a function that allows you to set the
preferences from the MapBasic application, for instance using this syntax:

Include "Menu.def"

Create Menu "Preferences" As
     "Mapper setting\tF11/W%122/XF11"
          Calling M_EDIT_PREFERENCES_MAP

You'll of course need to show this menu somewhere among your other menus.

These menus allows the user to set the area and distance units to metric.

HTH

Peter
------------------------------------------------------------------------------------------------
Peter Horsb�ll M�ller, GIS-Developer
Kampsax A/S, GIS Software & Solutions, Rugaardsvej 55, DK-5000 Odense, Denmark
tlf: + 45 63 13 50 13, dir: + 45 63 13 50 08, fax: + 45 63 13 50 90
mail: [EMAIL PROTECTED], http://www.mapinfo.dk, http://www.kampsax.dk
------------------------------------------------------------------------------------------------
Anitra wrote:
I have a MapBasic Application that runs off MapInfo Runtime (V6).

Very early in the application I have defined the distance units (as Km),
however, when the application is run on a pc that does not have MI Pro
(with Preferences) it does not make the distance units Kms - it remains at
Miles.
The distance units do change to Kms when a particular function is called -
where the distance unit is again stated.

Can anyone advise me on why Runtime does not accept the initial distance
statement.

BTW, it is written as follows:

Set Distance Units "Km" (as stated in the manuals)

Thanks,

--
Anitra


~~~~~~~~~~ Advertisement ~~~~~~~~~~~
Quick DOQQ Aerial Photos - Lower Price, Faster Delivery
LAND INFO offers full coverage of DOQQ aerial photos, priced lower and
delivered faster than the USGS and other providers.  LAND INFO also offers
feature extraction from the photography.  Visit
http://www.landinfo.com/directions.htm for complete details.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to