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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are arrays declared in the vbscript language?

537


How can constants be declared in the vbscript language?

550


Explain vbscript in detail?

615


What are the properties of regexp object?

579


In what way program "hello world" you can write in vbscript?

641






Explain few date functions in vbscript?

612


How to Import data from a file (file is on the desktop) to the data table

1554


what is event handling?

580


How to assign a numeric value to a variable?

614


Can u describe what kind of testing are for OTC derivates by banks.

1664


Explain the asc function?

504


How regexp.execute method works?

586


how to operate webobjects in a webpage using getobject function and then using generic methods?

2540


What are lbound and ubound in the vbscript language?

602


Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.

1568