Description |
The AnsiReverseString function returns the Source string with its characters reversed.
|
|
Related commands |
AnsiLeftStr |
|
Extracts characters from the left of a string |
AnsiMidStr |
|
Returns a substring from the middle characters of a string |
AnsiRightStr |
|
Extracts characters from the right of a string |
|
|
|
Example code : A simple example |
var
source, target : AnsiString;
begin
source := '123456789';
target := AnsiReverseString(source);
WriteLn('Source = '+source);
WriteLn('Target = '+target);
end;
|
Show full unit code |
Source = 123456789
Target = 987654321
|
|