Fórum Erro em sql #295294
13/09/2005
0
with DM.QClientes do
begin
Close;
SQL.Clear;
SQL.Add(´SELECT * FROM (SELECT * FROM ftclientes ORDER BY codcli DESC LIMIT 10 OFFSET 0) AS teste ORDER BY codcli´);
Open;
end;
DM.CdsClientes.Open;
Porém quando abro a ClientDataSet, retorna o seguinte erro:
list index out of bounds(-1)
Felipeiw
Curtir tópico
+ 0Posts
13/09/2005
Michelli88
Gostei + 0
13/09/2005
Felipeiw
Gostei + 0
13/09/2005
Michelli88
with DM.QClientes do begin Close; SQL.Clear; SQL.Add(´SELECT * FROM (SELECT * FROM ftclientes ORDER BY codcli DESC LIMIT 10 OFFSET 0) AS teste ORDER BY codcli´); Open; end; DM.CdsClientes.Open;
Ah sim, entao veja onde vc ta passando essa consulta pro ClientDataSet.. pq aí vc ta passando a consulta pro QClientes!
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)