How can I use the ReverseString
function in Delphi2009?
+7
A:
I don't know anything about Delphi, but a simple google search for "ReverseString Delphi 2009" would have led you to this answer:
var s : string;
s:='ABOUT DELPHI PROGRAMMING';
s:=ReverseString(s);
//s='GNIMMARGORP IHPLED TUOBA'
// this code is from about.com
So, I'm assuming you're encountering other problems?
moogs
2009-02-04 06:18:23
He may mean "what's the bloody point of it?" other than stupid palindromic games or checking that your password isn't just your username backwards? :-) Still, +1, since that's probably how you *do* use it.
paxdiablo
2009-02-04 06:27:42
To pass a job interview at Fog Creek? :)
Craig Stuntz
2009-02-04 14:33:57
At Fog Creek he would have to write it in C, otherwise Joel would not hire him, ever.
Fabio Gomes
2009-02-04 16:12:46
A:
@Pax - I'm using it for a teleprompter program for a friend. Not sure what other uses there are, but that's the one I've found for it. I was elated to find a built-in function so I didn't have to do it myself... :-)
Ron Grove
2009-05-19 20:43:37
A:
I wrote a function for that on my ZX Spectrum ages ago to find words that rhymes. Reversing words and then sorting them will give decent results, at least in Swedish.
idstam
2009-05-19 20:47:17