Difference between Do while loop and while wend loop
Answer Posted / 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 View All Answers
what do you mean .ota mobile format
How are values assigned to the variables in the vbscript language?
why variable name should not exceed 255 characters?
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?
Which command is used for writing text on a page?
Which operator is used to perform the comparison among 2 operands in the vbscript language?
If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?
Explain about the asc function?
Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?
Explain a few date functions in vbscript
Explain about tristate constants?
how to operate webobjects in a webpage using getobject function and then using generic methods?
What are the rules to name variable in vbscript?
regular expression that will recognize a browser as long as its name property starts with mybrowser
Mention what is byref and byval parameters in vbscript?