procedure TForm6.Button1Click(Sender: TObject); var I: Integer; found: boolean; begin found := false; with StringGrid1 do for I := 0 to RowCount - 1 do begin if Cells[FixedCols1, i] = Edit1.Text then begin TopRow := i; found := true; break; end; end; if found then ShowMessageFmt('%s trouvé à la ligne %d', [Edit1.Text, i]) else ShowMessageFmt('%s non trouvé', [Edit1.Text]); end;
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question