DelphiBasics
AnsiReverseString
Function
Reverses the sequence of letters in a string StrUtils unit
 function AnsiReverseString ( const Source : AnsiString ) : AnsiString;
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
 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

 Buy Proxies at
 Buyproxies.io
 
 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
 
Delphi Programming Neil Moffatt 2002 - 2017. All rights reserved.  |  Home Page