
10-31-2002, 10:18 PM
|
 |
Centurion
|
|
Join Date: Sep 2002
Location: australia
Posts: 155
|
|
|
well, i suppose a way to do it would be... find the length of the string that you're analysing using the Len function.
then, using the Left and Right functions, grab the first and last letter and compare them. if they're the same, use Left and Right again to compare the next two letters, etc, until you either have a mismatch, or there a no letters left.
if there's an odd number of letters you obviously don't have to analyse the central letter.
here's a big one for ya -
A MAN, A PLAN, A CANAL - PANAMA!
if you wanted your program to analyse that, you would obviously have to have it remove the spaces and punctuation...
HTH.
Col.
|
__________________
the conscious part of the brain...
is the bit that's soluble in alcohol.
|