Difference between Do while loop and while wend loop



Difference between Do while loop and while wend loop..

Answer / remya

The difference between do while and while wend loop .
Do while executes if the condition is true
While wend executes atleast once irrespective of conditions.
Ex:
Do while
Dim x
x=1
Do While x<5
document.write("Welcome.")
x=x+1
Loop

While wend:

Dim x
x=7
Do
document.write("Welcome.")
x=x+1
Loop While x<5

Is This Answer Correct ?    7 Yes 7 No

Post New Answer

More VB Script Interview Questions

Hi all..I have two values. a=20 ,b=30 I want to perform c= a+b and c= a*b using user define function.please anyone give the answer

1 Answers  


Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?

0 Answers  


What is the purpose of on error resume next statement?

0 Answers  


What if you do not specify anything when you call a procedure?

0 Answers  


How are values assigned to string type and numeric type variables?

0 Answers  


hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

0 Answers  


Write VB script to convert from feet to inches(hint 1feet=12 inches)

2 Answers  


Mention what is vbscript?

0 Answers  


Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?

0 Answers   Microsoft,


What are class properties?

0 Answers  


Write a code to print numbers from 5 to 0?

0 Answers  


What are the valid scopes of a variable in vbscript?

0 Answers  


Categories