Einzelnen Beitrag anzeigen

Benutzerbild von sk.Silvia
sk.Silvia

Registriert seit: 8. Feb 2006
Ort: Slovenia
90 Beiträge
 
Delphi 7 Personal
 
#1

Bind variables with components

  Alt 29. Apr 2006, 19:58
hi there, lets say i have a checkbox and a boolean variable myvar, and i will that myvar=checkbox.checked

is there another way as to write

Delphi-Quellcode:
procedure TForm1.checkbox(Sender: TObject);
  begin
  myvar:=checkbox.checked;
  end;
like to bind the variable with the component, so each time i change the value of the component the value of a given variable will also be changed automaticly without any unnnecessary procedures and events...?
  Mit Zitat antworten Zitat