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

can we call a test in another test? how? explain with one example?

1 Answers   iFocus,


What is test object model in QTP ?

8 Answers  


How can i count "spaces" in any sentence or a string if suppose " It is a Testing question" Here we have 4 gaps(spaces) Is there any function to find out spaces between words

5 Answers   iGate, Livetek,


Discuss quicktest professional environment?

0 Answers  


Can we select add ins in UFT during run time

1 Answers   NIIT,






On the website, the protocol has been changed https: to https what you will do? Tell me your approach?

0 Answers  


Synchronizing test

3 Answers   Wipro,


How to use QTP for Regration testing, plz tell as with short Example of login window? plz tell as....

2 Answers  


what is the data driven testing?

0 Answers  


What is an object repository?

0 Answers  


I am using descriptive programming for my project.when QTP deosn't identity or recognize a object by record and playback method,is it possible to make QTP identify that object using descriptive programming? Note: The object doesn't have unique properties and same properties used in Record and playback are only available, no extra properties are defined.

3 Answers  


how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?

0 Answers  


Categories