Einzelnen Beitrag anzeigen

Thomas F

Registriert seit: 3. Sep 2008
Ort: Nürnberg
281 Beiträge
 
Delphi 2005 Architect
 
#6

Re: Von einem Array den höchsten und niedrigsten Wert ermitt

  Alt 8. Okt 2008, 21:12
Ich hab das Problem schon gelöst.
Das TDateTime ist tatsächlich ein Float

Delphi-Quellcode:
      low_value := Strtotime(tabelle.Form1.StringGrid1.Cells[1,1]);
   for j := 1 to X do
   begin
     if low_value > Strtotime(tabelle.Form1.StringGrid1.Cells[1,j])
       then low_value := Strtotime(tabelle.Form1.StringGrid1.Cells[1,j]);
      if high_Value < Strtotime(tabelle.Form1.StringGrid1.Cells[1,j])
          then high_Value := Strtotime(tabelle.Form1.StringGrid1.Cells[1,j]);
      end;
  Mit Zitat antworten Zitat