Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
How to use the do while loop in vb6.0???? Please help me!!!!!!!!!!!!
Posted
Updated 2-Apr-22 15:43pm

VB
dim i as integer =0
Do while i<10
i=i+1
loop
 
Share this answer
 
v2
VB
Dim x as integer
do while x<5
Print  "hello"
X=x+1
Loop
Sarfaraz
 
Share this answer
 
v2
Hi,

This web page explains how to use a do while loop in VB.NET:
http://www.dotnetperls.com/do-while-vbnet[^]
 
Share this answer
 
try this code

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900