Re: strReverse


[ DelphiLand ]

Posted by Joey *DClub* on July 12, 2004 at 20:48:25:

In Reply to: Re: strReverse posted by keith on July 11, 2004 at 16:13:46:

Well i dont't know what your trying to reverse if you get that error but, this example works.

procedure SayHelloKeithBackwards;
var
S: string;
begin
S := ReverseString('Hello Keith');
ShowMessage(S);
end;

This will output "htieK olleH" in a dialog.

If you are getting errors with strings and stuff you may have to change the tpye of the variable or constant. Use StrToInt or IntToStr :)

Joey ^__^


Related Articles and Replies:


[ DelphiLand FAQ ]