Einzelnen Beitrag anzeigen

Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.755 Beiträge
 
Delphi 10.4 Sydney
 
#4

Re: setsame Zahlen

  Alt 24. Jun 2008, 18:04
Hallo,

wird der Wert von "stope" in den Prozeduren "vorbereiten1", "werteaus1"
und "zeigean1" verändert?

Wo wird zaehler und stope initialisiert?

Grüße
Klaus

Delphi-Quellcode:
procedure TForm1.JvTimer1Timer(Sender: TObject);
begin
  inc(zaehler);

  Label31.Caption := '';

  vorbereiten1;

  if stope = 1 Then
    Label31.Caption := Label31.Caption+'1'
  else
    Label31.Caption := Label31.Caption+'0';

  For c := a to zaehler do
    werteaus1;
//---------------------------------------------
  if stope = 1 Then
    Label31.Caption := Label31.Caption+'1'   // hier willst Du doch nicht addieren oder?
  else
    Label31.Caption := Label31.Caption+'0';

  zeigean1;

  if stope = 1 Then
    Label31.Caption := Label31.Caption+'1
  else
    Label31.Caption := Label31.Caption+'0';
  vorbereiten2;

  if stope = 1 Then
    Label31.Caption := Label31.Caption+'1
  else
    Label31.Caption := Label31.Caption+'0';

  For c := a to zaehler do
    werteaus2;

  if stope = 1 Then
    Label31.Caption := Label31.Caption+'1
  else
    Label31.Caption := Label31.Caption+'0';

  zeigean2;

  if stope = 1 Then
    Label31.Caption := Label31.Caption+'1
  else
    Label31.Caption := Label31.Caption+'0';

  Label4.Caption := inttostr(zaehler);

  if zaehler >= Length(zzahl)-2 Then
    stope := 1;
  if stope = 1 Then
    begin
      JvTimer1.Enabled := False;
      Button1.Enabled := True;
      Button2.Enabled := True;
      Button3.Enabled := True;
      Button4.Enabled := True;
      Button5.Enabled := False;
   end;
end;
Klaus
  Mit Zitat antworten Zitat