hello
I'm trying do get more then a line from sg,
i tried to use this code:
PQConnection.ExecuteDirect('Begin Work');
PQConnection.ExecuteDirect('INSERT INTO servico VALUES(DEFAULT,'+KmsEntrada.Text+','+KmsdeSaida.Text+','''+EmpregadoResponsavel.Text+''','''+DatadeEntrada.Text+''','''+DatadeSaida.Text+''','''+MatriculaServico.Text+''','+nif+','+HorasServico.Text+')');
WHILE NOT EOF do begin
SGpecasutilizadas.RowCount:=1;
PQConnection.ExecuteDirect('INSERT INTO pecasutilizadas VALUES('''+SGpecasutilizadas.Cells[0, SGpecasutilizadas.RowCount]+''','+NumeroServico.Text+')');
SGpecasutilizadas.RowCount:= SGpecasutilizadas.RowCount + 1;
end;
PQConnection.ExecuteDirect('Commit Work');
ActualizarServico();
on the table servico is inserting values right, but on the table pecasusadas isn't,
shure is something very wrong.
Like you allready have repair i'm a noob on this.
So please help me.
Thanks