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

how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me

0 Answers  


How will you release the memory acquired by an array variable in vbscript?

0 Answers  


Which function is used in the vbscript language to convert the specified expression into a date type value?

0 Answers  


Mention how to create a cookie using vbscript?

0 Answers  


How do you declare a variable in vbscript?

0 Answers  






Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.

0 Answers  


Explain How do you create a recordset object in vbscript?

0 Answers  


I want to count the total no of links present in yahoo home page. The script like Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo!India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing But while running the script it is fail (the object not present in the object repository).How to overcome please tell me the detail steps...for QTP9.30

1 Answers  


Mention what is the technology used by vb script?

0 Answers  


Open Yahoo Login Page in that page Suppose i have 100 mails and i want to delete 10'th mail now give procedure & Coding For that Scenario

4 Answers   AppLabs, IBM,


Could Anybody tell me VBScript for Check if a given number is Prime number-Don't use any Built- in Functions Boolean/int is Prime(int number).. Thanks in advance.

12 Answers   Amazon, Pyroferus,


How are arrays declared in the vbscript language?

0 Answers  


Categories