when you use For Loop, While..do, do..while? at what
situations which loop will use.

Answer Posted / satyanj

"For" loop can be used when the range of the iteration is
known. For ex: For i = 1 to 100....
"While..do" or "do..While" can be used when, the scenario
should satisfy the condition.
For Ex: While (<Condition>)...

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can constants be declared in the vbscript language?

557


how to comvert 120 into one hunderd twenty rupees only and vice varsa

1811


Mention what is the difference between vbscript and vba?

533


How to capture a runtime error in vbscript?

640


Mention what is the main difference between function and sub-procedure?

557






Explain about operator precedence in vb script?

586


what is diff between static and dynaic arrys?

1594


Mention what is byref and byval parameters in vbscript?

584


create a form to accept username and password validate the username and password with using message box, display the corresponding user message

2169


What is dictionary object in vbscript? Explain?

632


Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com

1828


If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?

1568


Write a code to print numbers from 5 to 0?

695


What is the difference between for loop and while loop?

560


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3284