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 |
|
Download this web site as a Windows program.
|
|
|
|
Example code : A simple example | var
source, target : AnsiString;
begin
source := '123456789';
target := AnsiReverseString(source);
ShowMessage('Source = '+source);
ShowMessage('Target = '+target);
end;
| Show full unit code | Source = 123456789
Target = 987654321 |
|
|