main logo
Subject: Re: Strip non-ASCII characters
Author: "Bill Kressbach"
Posted: 2007/07/31 14:13:05
 
View Entire Thread
New Search


Yes, this seems to work pretty well, using an LTRIM. I've only had trouble
with these characters at the beginning of a string so I think I'll try it
and see if it clears the problem.

Thanks, Bill


> 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]


 
©2007 Bill Kressbach
<-- Prior Message New Search Next Message -->