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
 
#3

Re: ProgressBar endlosschleife

  Alt 26. Nov 2007, 20:09
Zitat von lbccaleb:
Delphi-Quellcode:
procedure TSplashScreen.Timer1Timer(Sender: TObject);
begin
  if Progressbar1.position > 100 then
    progressbar1.position := 0;
  else
    inc(progressbar1.position);
end;

das sollte so eigentlich funzen aus dem stehgreif


mfg
Bis auf das inc

inc funktioniert nur bei Variablen, nicht bei Properties

Gruß
Neutral General
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