Hello Claude, > Although not documented under the ObjectGeography() function in MapBasic's > Reference Guide, I infer the statement ObjectGeography(object, > OBJ_GEO_CENTROID) returns a point object. Therefore, I use it on a text > object I want to resize in a MapBasic application, but get the > error message "Could not convert data". The function ObjectInfo() can return different data types depending on the parameters used and this has always caused problems when querying. One solution is to create a temporary column and do an update with the ObjectInfo() value which does work. Then, reissue your query using the results in the temporary column. I have tried other methods (casting, etc.) but nothing seems to work, or work well. If anyone has cracked the direct method, do let me know! Regards, Warren Vick Europa Technologies Ltd, U.K. http://www.europa-tech.com ---------------------------------------------------------------------- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
MI RE: ObjectGeography(object, OBJ_GEO_CENTROID)
Warren Vick, Europa Technologies Ltd. Sun, 7 Nov 1999 14:30:04 -0800
- MI: ObjectGeography(object, OBJ_GEO_... Lavoie, Claude
- MI RE: ObjectGeography(object, ... Jacques Paris
- Warren Vick, Europa Technologies Ltd.