What you offer is a perfectly legitimate way to determine if the checkbox is checked. The code that does this may look like
if checkBox.Checked then begin
//do whatever needed for checked checkbox
end
or how is it
if checkBox.Checked then begin
//do whatever needed for checked checkbox
end else begin
//do whatever needed for unchecked checkbox
end
Just remember that the value you received from the Checked property corresponds to the state of the flag at the moment you received the value.
source
share