This script is a fix to the "Script to determine if all chars are same in field"
posted by Harvard Kinkead (hneal_98) .
That script doesn't handle strings with trailing spaces (e.g. set @repeat = 'bbbb ')
It happens because of the nature of Len function.
To bypass this limitation my script concatenates one character to tested string and then takes it into account in length evaluation.
If the length is 1 then true, else false.
2007-10-02 (first published: 2002-06-20)
15,451 reads