Hello, 

        I'm have a problem retrieving values properly from the function
CentroidX() and Y(). Try this and see if it does the same.

        First, I'm using Lat and Long.
        1. open a table with objects
        2. open the Mapbasic window
        3. select an object
        4. type into the Mapbasic window "print Centroidx(selection.obj)"
and hit enter
        5. see what result gets printed

        My result is only limited to 8 characters like  -121.869,
                 but when you double click the object, it returns in the
prompt 11 characters..

        Now try this
        print this into the Mapbasic window
        dim x as float
        x = -121.345678
        print x

        My result is -121.346

        if I change x to a string, it does the same thing.

        I've tried to format the number to add more characters,but it won't
add the "-" to the string.
        I'm really concerned that the float is only taking this many
characters.
        Also, it does it to most of my tables, not all.
        I had this problem years ago and have since forgotten how to fix it.
Any help would be appreciated.

Thanks,
Dion Duran
Lead Programmer Analyst
GIS - Houston
Metricom, Inc.
[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]

Reply via email to