Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#10

AW: Konstrukt wie on...do für die allgemeine Nutzung?

  Alt 9. Apr 2019, 10:34
Zumindest bei Funktionsparametern gibt es etwas was du tun kannst:
Delphi-Quellcode:
procedure TForm2.FormCreate(Sender: TObject);
var form: TForm absolute Sender;
begin
  if Sender is TForm then
    form.Caption := 'Test';
end;
Weiß nicht ob dir das vllt. weiterhilft.
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat