-2
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;
Along those lines if (conexao.FieldValues['complex'] = '02' and conexao.FieldValues['financ'] = '04') then
I get the following error:
Incompatible types: 'string' and 'Boolean'
Because?
conexao
is of what class?– Junior Moreira
is a table, lists the fields of a table. I will expand the code
– Italo Rodrigo
so I know it’s a table, I want to know what it is, if it’s a dbx, firedac etc...
– Junior Moreira
hi @Júniormoreira, I managed to solve. Thanks
– Italo Rodrigo