I'm using the code:
conexao.First;
while not conexao.Eof do
begin
if (conexao.FieldValues['complex'] = '02' and conexao.FieldValues['financ'] = '04') then
total24:= total24 + conexao.FieldValues['val_tot'];
conexao.Next;
end;
In this line if (conexao.FieldValues['complex'] = '02' and conexao.FieldValues['financ'] = '04') then
I get the following error:
Incompatible types: 'string' and 'Boolean'
Why?