Fórum RecNo e RecordCount negativo - Qual o mistério? #172394
30/07/2003
0
Dei uma pesquisada em algumas dúvidas aqui do forum para ver se essa pergunta já foi enviada e pelo que vi existem algumas, mas sem uma resposta que solucione o problema.
Estou tentando exibir em uma StatusBar o número atual e o total de reg.:
StatusBar1.Panels[0].Text := IntToStr(DM.Tbl_NF.RecNo) + ´ / ´ + IntToStr(DM.Tbl_NF.RecordCount);
Porém, o RecNo só retorna -1 e o RecordCount exibe o número total de registros negativo.
Como faço para ele exibir corretamente?
Utilizo o sgbd Informix e delphi 7. :?:
[]´s
Angelnoa
Curtir tópico
+ 0Posts
30/07/2003
Adriano Santos
uso Delphi 5.0 e Interbase 6.0.
Componente TQuery normal.
procedure TForm1.DBGrid1CellClick(Column: TColumn);
begin
Label1.Caption := IntToStr(Query1.RecNo) + ´ de ´ + IntToStr(Query1.RecordCount);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
if not Query1.Active then Query1.Active := True else Query1.Active := False;
if not Query2.Active then Query2.Active := True else Query2.Active := False;
end;
procedure TForm1.DBGrid2CellClick(Column: TColumn);
begin
Label2.Caption := IntToStr(Query2.RecNo) + ´ de ´ + IntToStr(Query2.RecordCount);
end;
Gostei + 0
31/07/2003
Angelnoa
Não é possível, tem que ter alguma forma de fazer isso funcionar, não tem lógica.
Gostei + 0
31/07/2003
Angelnoa
Fico grata a quem puder me ajudar
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)