在vb6.0中执行while循环 [英] do while loop in vb6.0

查看:1207
本文介绍了在vb6.0中执行while循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在vb6.0中使用do while循环?请帮助我!!!!!!!!!!!!

How to use the do while loop in vb6.0???? Please help me!!!!!!!!!!!!

推荐答案

尝试此代码

try this code

Dim index As Integer = 0
Do
    Debug.Write(index.ToString & " ")
    index += 1
Loop Until index > 10


dim i as integer =0
Do while i<10
i=i+1
loop


Dim x as integer
do while x<5
Print  "hello"
X=x+1
Loop

萨法拉兹


这篇关于在vb6.0中执行while循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆