what is diff b/n these 2 programs
1) for i=5 to 1 step 2
msgbox "pass"
next
2_) for i=5 to 1 step -2
msgbox "pass"
next
Answers were Sorted based on User's Feedback
Answer / veer
From the first one will not display any message box because the condition is not true but it shows result as "done" in the result window .
From the second one will display a message box "pass" 3 times
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / mano
the above answer is right but in second program pass wil display 3 times
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / manisha
In the first one it will not display any result.Because the
condition given is wrong .
In the second one the result is displayed as pass for 3
times.
Condition for ForLoop:-
the limit must be in increament order (OR) if the limit is
decreament order we have to mention "Step -n",where n is
to skip or jump .
In the above example:-
For the 1st - no result
for the 2nd - The result is displayed as pass for 3 times.
because for i=5 to 1 step -2
i=5
i=3(jumped to 5-2=3)
i=1(jumped to 3-2=1)
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / ankit
the first one will not print any message because the
condition is not true
the second one will print message pass 2 times
| Is This Answer Correct ? | 1 Yes | 4 No |
how to store charecters of HARIBABU Using arrays
i need to login to my yahoo accoutnt using VB Script, automating the operation of webobjects, even launching of IE. How?
What is the extension of the vbscript file?
sunday is sunday monday tuesday wendesday sunday thursday friday saturday sunday sunday how to count no of sunday in the text file from vb? Answer me asap
wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......
generic function for webedit box for web application
Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?
If anyone knows abt Test Complete material, Pls let me Know. if u have any material or any documents..... Pls mail me on this mail Id...... This is very Urgent Requirment..... for my Project.....
find the length of the string without using length function?
What is vbscript procedures?
What is difference between Active screen and movie screen recorder in QTP 9.2?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?