Hi all! I am trying , through the following bit of code, to open a mapper centered on a certain location at a certain scale, and resize the window to a certain dimension. The values and the variables they are in are: Ecran_XCentre_Al: X coordinate of mapper center point, Ecran_YCentre_Al: Y coordinate of mapper center point, Ecran_Echelle_Al: Scale of mapper (in km per cm), Ecran_Width_Al: Width of mapper window (in cm, i.e. 29 cm), Ecran_Height_Al: Height of mapper window (in cm, i.e. 21 cm), Through the following bit of code, I can get the coordinates of the center point and scale just right. However, the width of the window is 27,1992 cm and the height 19,9231. How come? The first NOTE statement yields 29,21; the second NOTE statement yields 27.1992,19.9231; the third NOTE statement yields 27.1992,19.9231; Code is: =========================== Set Paper Units "cm" Note Ecran_Width_Al + "," + Ecran_Height_Al 'Checking contents of variables containing width & height values Set Map Window Fenetre Center (Ecran_Xcentre_Al,Ecran_Ycentre_Al) Scale 1 Units "cm" For Ecran_Echelle_Al Units "km" Note WindowInfo(Fenetre,4) + "," + WindowInfo(Fenetre,5) ' WIN_INFO_WIDTH,WIN_INFO_HEIGHT Set Window Fenetre Position (0,0) Units "cm" Width Ecran_Width_Al Units "cm" Height Ecran_Height_Al Units "cm" ScrollBars Off Note WindowInfo(Fenetre,4) + "," + WindowInfo(Fenetre,5) ' WIN_INFO_WIDTH,WIN_INFO_HEIGHT =========================== Thanks for your help. _____________________________________________ Claude Lavoie Service du soutien à la clientèle Direction des technologies de l'information Ministère des Transports du Québec 35, rue de Port-Royal Est, salle 5.00 a Montréal (Québec) H3L 3T1 Téléphone: (514) 873-6280 Télécopieur: (514) 873-8203 Courriel: mailto:[EMAIL PROTECTED] _____________________________________________ ---------------------------------------------------------------------- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]