Page 1 of 1

Checking a textField against a list of permitted characters

Posted: Mon Feb 17, 2014 10:29 pm
by richmond62
This stack contains 3 fields: fORIGIN, fLIST and fOUTPUT

fLIST contains the list of permitted characters (in this case the consonants of the English alphabet).

The button will "bite" the first character from the string in fld fORIGIN and if it matches one of the letters in fld fLIST put it into fld 'fOUTPUT

This is horribly primitive and needs a REPEAT loop, but it proves its point.
LC_gadfly.png

Re: Checking a textField against a list of permitted charact

Posted: Wed Feb 19, 2014 5:08 pm
by richmond62
Here's a cleaned-up version, with a repeat loop.

There is an option to perform using fields

and

an option to use strings (which should, with great long strings be quicker).