Hi Dany Try using the Instr() function if instr(1,myString,Chr$(10)) > 0 then you have a Carriage return Peter Laulund National Survey and Cadastre, Denmark "Dany Bouchard" <[EMAIL PROTECTED]> - 2000 06 29 15:20:46 Til: [EMAIL PROTECTED] cc: (bcc: Peter Laulund/MI/KMS) Vedrørende: MI Mapbasic - Reading if text object has carriage returns This has to be simple ! I am just trying to figure out if a text object textstring (returned by ObjectInfo(obj, OBJ_INFO_TEXTSTRING) has carriage returns. Is there an easy way aside from looping through all characters and checking for carriage returns by converting each character using ASC() ? Thanks in advance ! Salutations. Dany Bouchard DBx Geomatics 38 de l'Orbite Hull, Québec Canada J9A 3C7 Téléphone/Telephone: 819.743.3870 Télécopieur/Fax: 819.775.3264 Courrier électronique/Email: [EMAIL PROTECTED] Page Web/Web site: http://www.dbxgeomatics.com/home.asp Vitrine technologique SVG / SVG Technology Preview: http://www.dbxgeomatics.com/svg.asp
This has to be simple !
I am just trying to figure out if a text object
textstring (returned by ObjectInfo(obj,
OBJ_INFO_TEXTSTRING) has carriage returns.
Is there an easy way aside from looping through all
characters and checking for carriage returns by converting each character using
ASC() ?
Thanks in advance !
Salutations.
Dany Bouchard
DBx Geomatics 38 de l'Orbite Hull, Québec Canada J9A 3C7 Téléphone/Telephone: 819.743.3870 Télécopieur/Fax: 819.775.3264 Courrier électronique/Email: [EMAIL PROTECTED] Page Web/Web site: http://www.dbxgeomatics.com/home.asp Vitrine technologique SVG / SVG Technology Preview: http://www.dbxgeomatics.com/svg.asp |