Luiz Fernando Posted June 22, 2015 Report Share Posted June 22, 2015 Colegas teria como usar algo do tipo LOOP dentro de um for next ex: while ! eof() if ! minha_condicao loop endif . . . * resto do código enddo usando um for next teria como fazer algo do tipo Obrigado Ronaldbuch 1 Quote Link to comment Share on other sites More sharing options...
Theotokos Posted June 23, 2015 Report Share Posted June 23, 2015 Sim! só que for nexte sempre vai usar uma variavel inciando com um valor até outro valor For n = 1 to 10 next n vai executar o mesmo codigo dentro do laço 10x For n = 1 To 10 if ! minha_condicao loop endif . . . * resto do códigoNext n Quote Link to comment Share on other sites More sharing options...
evertonlb Posted June 23, 2015 Report Share Posted June 23, 2015 Não sei se é somente para obter conhecimento ou se realmente precisa usar o For Next... mas creio que outro Do while funcionaria muito bem!!! Att. Everton Quote Link to comment Share on other sites More sharing options...
sistem Posted June 23, 2015 Report Share Posted June 23, 2015 while ! eof() if ! minha_condicao SKIP loop endif . . . * resto do código enddo For n = 1 To 10 if ! minha_condicao n++ else * resto do código endif Next n algo do tipo Quote Link to comment Share on other sites More sharing options...
sambomb Posted June 23, 2015 Report Share Posted June 23, 2015 For contador := 1 to nMaximo If !Condicao() Loop //-- Não precisa incrementar o contador pois ele faz automaticamente End End Theotokos 1 Quote Link to comment Share on other sites More sharing options...
sistem Posted June 23, 2015 Report Share Posted June 23, 2015 For contador := 1 to nMaximo If !Condicao() Loop //-- Não precisa incrementar o contador pois ele faz automaticamente End End Boa Quote Link to comment Share on other sites More sharing options...
Luiz Fernando Posted June 24, 2015 Author Report Share Posted June 24, 2015 Colegas obrigado pela respostas, por um equivoco meu achei que o comando loop só funcionava dentro dentro de um DO WHILE, por isto não cheguei nem a testar antes de postar. Obrigado 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.