if sgDisplay.Cells[NameCol, i] = patient.name then
if SameText(sgDisplay.Cells[NameCol, i], patient.name) then
if SameText(sgDisplay.Cells[NameCol, i], patient.name) and (sgDisplay.Cells[AgeCol, sgDisplay.RowCount-1]=IntToStr(patient.age)) then