EXEMPLOS DE LOOP

USUARIO.EXCLUIDOS 22/07/2005 12:22:28
#95566
Bom dia!
Preciso de exemplos de comandos com loop.
For/next,do while,until
GUGSDAJUBS 22/07/2005 12:25:23
#95567
texto = "0"
for x = 1 to 10
texto = texto & " - " & x
next
msgbox texto

texto = "0"
do while not x = 10
texto = texto & " - " & x
x = x + 1
loop
msgbox texto
JEAN.JEDSON 22/07/2005 13:25:57
#95588
x=1
for x=1 to 10
msgbox x
next x

x=1
for x=10 to 1 step -1
msgbox x
next x

x=1
while x<10
msgbox x
x=x+1
wend

x=1
do
msgbox x
x=x+1
loop until x<10
Tópico encerrado , respostas não são mais permitidas