Thema: Delphi onVariableChange?

Einzelnen Beitrag anzeigen

Benutzerbild von mirage228
mirage228

Registriert seit: 23. Mär 2003
Ort: Münster
3.750 Beiträge
 
Delphi 2010 Professional
 
#2

Re: onVariableChange?

  Alt 17. Mai 2004, 17:53
Du könntest dir mal properties anschauen.

Ein Beispiel:

Delphi-Quellcode:
  private
    FMyBool: Boolean;
  
    procedure SetMyBool(const MyBool: Boolean);
  public
    property MyBoolean: Boolean read FMyBool write SetMyBool;
end;
und dann die Implementierung:
Delphi-Quellcode:
procedure TIrgendwas.SetMyBool(const MyBool: Boolean);
begin
  FMyBool := MyBool;
  OnMyBoolGeaendert;
  // sonstige Prozeduren
end;
Ich hoffe das hat dir einen Denkanstoß gegeben.

mfG
mirage228
David F.

May the source be with you, stranger.
PHP Inspection Unit (Delphi-Unit zum Analysieren von PHP Code)
  Mit Zitat antworten Zitat