views:

212

answers:

3

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
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
To pass a job interview at Fog Creek? :)
Craig Stuntz
At Fog Creek he would have to write it in C, otherwise Joel would not hire him, ever.
Fabio Gomes
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
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