Ben Not having all you DIM statements I'm guessing but -
When assembling strings always try and use ampersands (&) in preference to (+) - you do in your second statement. Otherwise most compilers will try and add numeric return values to strings - sometimes it works and sometimes it doesn't, either way its probably not what you intended. Print and Write give you different behaviour with quotes - have a look at Write... Since you're inserting lots of quotes it may give you a better result because it inserts quotes (and commas) for you. HTH PS refuse to comment further as string parsing is the sort of thing that can entangle one for days. My life is stressful enough as it is. Paul Crisp Syntegra Innovation Place Delta Bank Road Newcastle NE11 9DJ Tel 0191 461 4522 Fax 0191 460 1987 -----Original Message----- From: Ben Crane [mailto:crane_ba@;yahoo.com] Sent: 23 October 2002 14:20 To: [EMAIL PROTECTED] Subject: MI-L Annoying Data Mismatch Error Hi all, It must be the weather...I'm suddenly getting this data mismatch error and it's focussed on the following code [it's only a segment of code]: CurObj = LayerList(Var_B)+"_Clipped.OBJ" Do Case CurObj <--------ERROR Case OBJ_TYPE_POINT fx = ObjectGeography(CurObj, OBJ_GEO_POINTX) fy = ObjectGeography(CurObj, OBJ_GEO_POINTY) Print #1, "<circle id="""+lcase$(LayerList(Var_B))+""" attr="""+LayerList(Var_B)+"_"+Var_J+"_"+Count+""" style=" & chr$(34) & "fill:blue;stroke:blue" & chr$(34) Print #1, "cx=" & chr$(34) & Int(fx - fMinX) & chr$(34) & " cy=" & chr$(34) & Int(fMaxY - fy) & chr$(34) & " r=" & chr$(34) & nPointSize & chr$(34) & " onclick=""getvalue(evt)""/>" End Case I've looked at it over and over and can't work out what I'm doing wrong--anyone with a fresh set of eyes I would be grateful... Thanx Ben __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 3727 ******************************************************************** This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you Check us out at http://www.syntegra.com ********************************************************************
