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 is the difference between function and procedure?
What is the use of the recordset object and which statement is used to create such an object?
how to operate webobjects in a webpage using getobject function and then using generic methods?
i have a problem with this error(this error related edit and
delete button,when i click this button in datagrid..i will
get this error)"Invalid postback or callback argument.
Event validation is enabled using
Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?
What methods are used to create text files and open text files in the vbscript language?
Explain about adodb.stream class?
What is purpose of scripting.filesystemobject class in vbscript?
Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.
Explain about filter expression?
What are class events?
Explain about operator precedence in vb script?
what is the standards used for writing the script in QTP
Explain the filter expression?
How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.