What is difference between the For..Next and While..Wend
statements?

Answers were Sorted based on User's Feedback



What is difference between the For..Next and While..Wend statements?..

Answer / minal

For loop executes a block of code for a fixed no. of time where as While...Wend statement uses a condition to control the number of iterations to be run.
The loop continues as long as the condition expression is True.

Is This Answer Correct ?    54 Yes 19 No

What is difference between the For..Next and While..Wend statements?..

Answer / durrya saman

The while loop is usually used when you need to repeat something until a given condition is true. On the other hand, the for loop is usually used when you need to iterate a given number of times

Is This Answer Correct ?    17 Yes 3 No

Post New Answer

More QTP Interview Questions

how do you do database testing in qtp

5 Answers   NIIT,


Plz give the vb script for the following scenerio I have faced one issues while doing test in QTP. I have described the scenario below. 1. I have to test web application.In that i want to select from the drop down values in the application. 2. Suppose Drop down has 5 value "A,B,C,D,E".I would like to give value from data table of QTP. 3. For every iliteration it should select A,then B and so on

0 Answers  


What are the types of object repository in qtp?

1 Answers  


What is post recovery scenario?

1 Answers  


This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?

1 Answers  


This is Ajay i have few douts if anybody know pls give me reply. 1. i have opend 2 gmails i am working with 1 gmail i want to close other gmail by usig script. 2.i have 10 links in a page all of them have same properties& names i want to click on 5link by using script. 3.i have one combobox in that i want to see all the citynames in the combobox and i have to check weather hyderabad is present or not. 4. size of objectrepository. 5.what r problems we get during writing the script. 6.is it possible to compare to excel sheets in qtp if possible wht is the script. 7.example for lowlevelrecording

3 Answers   Symantic Space,


what is the difference between IE & Netscape in web testing on a log in page

1 Answers   TCS,


1)What is the Difference Between WaitTo & Sync?

4 Answers   Wipro,


CAN WE USE 'BVA' AND 'ECP' IN AUTOMATION?

3 Answers   Polaris,


how can we do the frame work in qtp

1 Answers   L&T,


what is runmodes in QTP

1 Answers  


Among all the check points what is the most important checkpoint?

5 Answers   Semantic Space,


Categories