Einzelnen Beitrag anzeigen

Benutzerbild von Sharky
Sharky

Registriert seit: 29. Mai 2002
Ort: Frankfurt
8.251 Beiträge
 
Delphi 2006 Professional
 
#2

Re: Key = '*' -> Edit1.Text = Akt. Datum

  Alt 9. Aug 2004, 14:47
Hai General,

versuche es mal so im OnKeyPress:
Delphi-Quellcode:
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
  if (Key = '*') then
   begin
     Key := #0;
     TEdit(Sender).Text := DateToStr(Date);
   end;
end;
Stephan B.
"Lasst den Gänsen ihre Füßchen"
  Mit Zitat antworten Zitat