betovsp Posted May 19, 2004 Report Share Posted May 19, 2004 Pessoal, acessando um banco de dados ACCESS e gravando em um dbf. Uso um while assim: DO WHILE (oDbCust:Skip()#0) ... ... ... END Acontece que quando ele chega no final do Bco de Dados Access, ele grava o último registro enquanto estiver executando. como faço para que quando ele chegar no final sair da rotina. Grato. beto. Quote Link to comment Share on other sites More sharing options...
karinha Posted May 20, 2004 Report Share Posted May 20, 2004 If Eof() Exit //Return Nil etc... Endif João Santos São Paulo-Brasil (11) 3106-2832 a Noite karinhannah@ubbi.com.br Quote Link to comment Share on other sites More sharing options...
alex2002 Posted May 20, 2004 Report Share Posted May 20, 2004 Olá Beto, Talvez seria mais simples utilizar assim: do while !oDbCust:eof() oDbCust:Skip() enddo Um Abraço, Alexandre Pereira Quote Link to comment Share on other sites More sharing options...
betovsp Posted May 20, 2004 Author Report Share Posted May 20, 2004 karinh, já tentei utilizar desta forma e não funcionou. Tenten a formula do Alexandre e consegui. Grato Alexandre. Abraços. Beto. Quote Link to comment Share on other sites More sharing options...
alex2002 Posted May 21, 2004 Report Share Posted May 21, 2004 E ai João, Agora c me deve uma caixa de Brahmas. Vou até ai só pra receber. hehehe Um abraço, Alexandre Pereira Quote Link to comment Share on other sites More sharing options...
vagner Posted May 21, 2004 Report Share Posted May 21, 2004 Opa, Ouvi dizerem Brejas , quando ?????? Abraços Vagner Wirts São Paulo-Brasil Ps.: Ouvi errado , pensei que fosse cerveja mas é água pura (heheheheheheheheheheheheheh), água enferruja Quote Link to comment Share on other sites More sharing options...
karinha Posted May 21, 2004 Report Share Posted May 21, 2004 hahahahahah... Tem brahmas e antarcticas. Podem Vir os Dois! São meus super REIS! Abraços. João Santos São Paulo-Brasil (11) 3106-2832 a Noite karinhannah@ubbi.com.br Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.