Hola,
No sé si tendrías que comprobar previamente que "FindKey" tiene un resultado positivo, algo más o menos como esto:
Código Delphi
[-]
if Tabla.FindKey([variable]) then
Tabla.Delete;
Porque puede ser que la función devuelve "False" y, según la ayuda de Delphi en ese caso no se moverá el cursor...
Cita:
Empezado por Ayuda de Delphi - FindKey
If the search is successful, FindKey positions the cursor on the matching record and returns true. Otherwise the cursor is not moved, and FindKey returns false.
|