Re: New Iteration of cleanASCII

2017-03-23 Thread Bob Sneidar via use-livecode
I had a condition there I didn't need (there) so I moved it but forgot to delete the break. Bob S > On Mar 23, 2017, at 07:23 , Tiemo Hollmann TB via use-livecode > wrote: > > Hi Bob, nice function. > Just for my interest, what is the function of the leading "break" in the > switch control

Re: New Iteration of cleanASCII

2017-03-23 Thread Bob Sneidar via use-livecode
Probably a typo. Bob S > On Mar 23, 2017, at 07:23 , Tiemo Hollmann TB via use-livecode > wrote: > > Hi Bob, nice function. > Just for my interest, what is the function of the leading "break" in the > switch control structure? It doesn't seem to bother, but any advantage? > Tiemo _

AW: New Iteration of cleanASCII

2017-03-23 Thread Tiemo Hollmann TB via use-livecode
Auftrag von Bob Sneidar via use-livecode Gesendet: Mittwoch, 22. März 2017 23:21 An: How to use LiveCode Cc: Bob Sneidar Betreff: Re: New Iteration of cleanASCII cleanASCII(pString, pModeList, pCustomChars) Belay my last. I refactored the whole thing to be much more robust. Pass a string, a modeli

Re: New Iteration of cleanASCII

2017-03-22 Thread Bob Sneidar via use-livecode
cleanASCII(pString, pModeList, pCustomChars) Belay my last. I refactored the whole thing to be much more robust. Pass a string, a modelist and a custom list. This will act as a simple regex character filter for any string you pass it. (Great for filtering out hidden/non-printing characters!) If

Re: New Iteration of cleanASCII

2017-03-22 Thread Dr. Hawkins via use-livecode
Be sure to use an appropriate video card: Markham, ON - In a joint announcement today the Nethack Devteam announced a new version of the popular text based game, version 3.4.1, but the big announcement came from ATI which announced a new video card, the ATI Radeon 9500 ASC, optimized for ASCII gam

New Iteration of cleanASCII

2017-03-22 Thread Bob Sneidar via use-livecode
Hi all. A while back I wrote a function that would remove all characters from a string except for 0-9, a-z, and A-Z. I have updated it to also include an arguement for other allowed characters, and true or false for line breaks and or carriage returns. Note the code below. What I need is a lis