LTRIM would work better for beginning characters.

Tracy

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Pearson
Sent: Tuesday, July 31, 2007 2:05 PM
To: [EMAIL PROTECTED]
Subject: RE: Strip non-ASCII characters

With VFP 9 you could use Rtrim(variable, 0, chr(0), chr(0xff)) Tracy

-----Original Message-----
From: Behalf Of Bill Kressbach
Sent: Tuesday, July 31, 2007 1:37 PM

The code is for monitoring the Emergency Alert System (EAS) for a radio
station.  Sometimes a little noise from the receiver will add a few bytes of
data to the beginning of the message while the receiver is trying to lock
up.  This latest one is   00 00 FF 00 FF 00 00 (HEX).  These characters will
sometimes confuse the software causing strange results.  So I need to remove
them.  I am a little concerned about the amount of time required to remove
them but I could try a modification of Ed's code by keeping anything between
20 and 127.

Bill




[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to