Hi Nick,

You may use the function MapperInfo as follows

dim x as string
dim y as string
x=MapperInfo(frontwindow(),MAPPER_INFO_MAXX)
y=MapperInfo(frontwindow(),MAPPER_INFO_MAXY)

where the second parameter can be one of:
MAPPER_INFO_MAXX        The largest x-coordinate shown in the window.
MAPPER_INFO_MAXY        The largest y-coordinate shown in the window.
MAPPER_INFO_MINX        The smallest x-coordinate shown in the window.
MAPPER_INFO_MINY        The smallest y-coordinate shown in the window.

if you want to use this through the mapbasic window you need to use the following number constants instead of the 'words':
Define MAPPER_INFO_MINX 5
Define MAPPER_INFO_MINY 6
Define MAPPER_INFO_MAXX 7
Define MAPPER_INFO_MAXY 8


for example:
x=MapperInfo(frontwindow(),7)

Regards

Stuart


From: "Nick Hall" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To: "MapInfo-L" <[email protected]>
Subject: MI-L map co-ords as text
Date: Wed, 2 Mar 2005 17:04:28 -0000

Hi All,

can anyone help with the mapbasic code behind grabbing the easting/northing
of a mapwindow (centre or bottom corner) as a text string. Hopefully it can
be used like the CurDate() function through workspaces and/or mapbasic
window...


thanks in advance

Nick Hall

~~ INDEPENDENT GIS CONSULTANCY AND TRAINING ~~
~~~~~~ SPECIALISTS IN THE PUBLIC SECTOR ~~~~~~~

Salford GIS Limited
Technology House
Lissadel Street
Salford
M6 6AP

tel:    0161 278 2442
mob: 07855 250360
mail: [EMAIL PROTECTED]
web: www.salford-gis.co.uk


-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.5.7 - Release Date: 01/03/2005



--------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 15497



Reply via email to