Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include "protheus.ch"
  2.  
  3. User Function A02Ex05() // Referente ao While
  4. Local nMostra := 1
  5.  
  6. While nMostra <= 10
  7. MsgAlert(nMostra)
  8. nMostra++
  9.  
  10. If nMostra == 5
  11. Exit
  12. EndIf
  13. EndDo
  14. Return
  15.  
  16. User Function A02Ex05A() // Referente ao While - versão 2
  17. Local nMostra := 1
  18.  
  19. While nMostra <= 10
  20. MsgAlert(nMostra)
  21.  
  22. If nMostra == 5
  23. Exit
  24. EndIf
  25. nMostra++
  26. EndDo
  27. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement