Reversing a string
Posted: Mon Sep 22, 2008 2:40 am
Hey guys,
I'm new to revolution and have to figure out a program to have the user input a phrase or series of numbers and check to see if what they entered is a palindrome. Unfortunately, I don't know how to do it on Revolution.
Normally I would find the length of the string, then match up the first letter with the last letter, 2nd with the 2nd to last, etc.
Also, it seemed like there was a "reversed" code. I tried to do it but it didn't work. I also have to consider blank spaces that users may enter in the phrase.
If someone could give me a concrete code or talk me through how to do this with Revolution code, I would greatly appreciate it.
I'm new to revolution and have to figure out a program to have the user input a phrase or series of numbers and check to see if what they entered is a palindrome. Unfortunately, I don't know how to do it on Revolution.
Normally I would find the length of the string, then match up the first letter with the last letter, 2nd with the 2nd to last, etc.
Also, it seemed like there was a "reversed" code. I tried to do it but it didn't work. I also have to consider blank spaces that users may enter in the phrase.
If someone could give me a concrete code or talk me through how to do this with Revolution code, I would greatly appreciate it.