var
iMath, iAfr: integer;
begin
if cbMath.checked then
iMath := sedMathf.value div sedmatho.value and iMath * sedmathm.value
else
sedAfrm.setfocus;
end;
My variables do not want to be initialized, how can I prevent this or fix this?
var
iMath, iAfr: integer;
begin
if cbMath.checked then
iMath := sedMathf.value div sedmatho.value and iMath * sedmathm.value
else
sedAfrm.setfocus;
end;
My variables do not want to be initialized, how can I prevent this or fix this?
You are trying to set iMath to a value using iMath. The right hand side of your assignment is undefined.