I have a DataSet
that returns multiple rows and in one of the columns I have the Situação
of the record that can be: open, closed, in conference, checked, finalized ...
I need to check if there is any situation other than conferido
, I tried Locate
direct with checked, but the way I did it will not work.
Another possibility would be to make a Locate
for each of the situations to apply the restriction, but would like something better than doing several IFs
.
if not dmContratoEmpresarial.cdsContratoEmpresarialContratos.Locate('SITUACAO', 'CONFERIDO', []) then
fMensagem.Adicionar('Os contratos não foram todos conferidos');