Na napisanie textu odzadu sa da pouzit funkcia ReverseString z unitu StrUtils.
Napriklad zo vstupu "Knihy mam rad." funkcia vrati ".dar mam yhinK"
Ukazka pouzitia:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls,StrUtils;
type
TForm1 = class(TForm)
BtChange: TButton;
EdInText: TEdit;
EdOutText: TEdit;
procedure BtChangeClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.BtChangeClick(Sender: TObject);
begin
EdOutText.Text := ReverseString(EdInText.Text);
end;
end.
Komentáre
.mašúksyv otsi ot ydekein, adnars moklec...
Možno sa raz zíde...
- Tak to meno...