In the MapBasic window type:

dim str as string
str = "abcde_?"
str = Left$(str,InStr(1,str,"_?")-1)
print str


(won't work if you have "abcd_?abcd", ie "_?" must be at the end of the
string)

HTH,

Jakob Lanstorp
Senior Consultant
Geographical Information & IT

COWI A/S
Odensevej 95
5260 Odense S.

Tel  +45 6311 4900
Fax  +45 6311 4949
Mob  +45 5050 8087
E-mail [EMAIL PROTECTED]
http://www.cowi.dk
http://www.cowi.com


-----Original Message-----
From: Zhang, Jiye [mailto:[EMAIL PROTECTED] 
Sent: 22 September 2005 14:09
To: [email protected]
Subject: MI-L Trim special characters


Is there a command (or function) in MapBasic to trim a special
character, like _? I look through the help, and did not find. Or may be
I just passed it. The LTrim() or RTrim() can only trim space(s).

 

Jiye Zhang

NYC DEP DWQC Field Operation

(718) 595-6313

(718) 595-6399 (fax)

 <mailto:[EMAIL PROTECTED]/gov> [EMAIL PROTECTED]

 

 

 



* ** *** ** * ** *** ** * ** *** ** * 
This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they 
are addressed. 
Any views or opinions presented are solely those of the author, and do
not necessarily 
represent those of ESB. 
If you have received this email in error please notify the sender. 
 
Although ESB scans e-mail and attachments for viruses, it does not
guarantee 
that either are virus-free and accepts no liability for any damage
sustained 
as a result of viruses. 
 
* ** *** ** * ** *** ** * ** *** ** *


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 17978




---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 17981

Reply via email to