Sembra che tu stia cercando di convertire una stringa vuota in un intero e x questo dà l'eccezione!

prima di convertire potresti mettere un controllo e poi
mettere una try.
Esempio :

var str : string;
numero : integer;
begin
if str <> '' then
begin
try
numero := StrToInt(str);
except on e : exception do
showmessage(e.message);
end;
end;


Ciaoooooo!