StrToFloat raises an exception when the value is empty, try this:
try
num1 := StrToFloat(edNum1.Text);
except
num1 := 0;
end;
pritaeas
Posting Prodigy
9,317 posts since Jul 2006
Reputation Points: 1,178
Solved Threads: 1,467
Skill Endorsements: 86
Question Answered as of 2 Years Ago by
pritaeas
and
NotNil