Werte eingrenzen in der tabelle
-
Hallo habe eine errechneten pumpenwert (p) will jetzt eine ähnliche aus einerm Stringrid auswählen wie mache ich das ?
hab mir gedacht so:
for (i=1;i>StrToInt(F_Auswahl->E_Anzahl->Text);i++) { if(F_Auswahl->SGTab->Cells [8][i]==CB_ausw->Text) { pumpe1 =StrToFloat( F_Auswahl->SGTab->Cells [3][i]); if (pumpe1<p) { if(pumpe1>max) { max=pumpe1; m=i; } } } } Form6->Visible =true; Form6->L_ausgabe->Caption = F_Auswahl->SGTab->Cells[1][m]+ F_Auswahl->SGTab->Cells[2][m]+ F_Auswahl->SGTab->Cells[3][m]+ F_Auswahl->SGTab->Cells[4][m]+ F_Auswahl->SGTab->Cells[5][m]+ F_Auswahl->SGTab->Cells[6][m]+ F_Auswahl->SGTab->Cells[7][m]+ F_Auswahl->SGTab->Cells[8][m]; }
Form6->Visible =true;
Form6->L_ausgabe->Caption =
F_Auswahl->SGTab->Cells[1][m]+
F_Auswahl->SGTab->Cells[2][m]+
F_Auswahl->SGTab->Cells[3][m]+
F_Auswahl->SGTab->Cells[4][m]+
F_Auswahl->SGTab->Cells[5][m]+
F_Auswahl->SGTab->Cells[6][m]+
F_Auswahl->SGTab->Cells[7][m]+
F_Auswahl->SGTab->Cells[8][m];
-
Hallo
Bitte die Frage nochmal neu formulieren, so das auch Leute die dein Vorhaben nicht kennen diese verstehen. Ich jedenfalls habe nicht verstanden was dein Problem ist.bis bald
akari