write a vb script to print even numbers from 1-50?

Answer Posted / pramila

Dim num
For i=2 to 50 step 2
print i
Next

Is This Answer Correct ?    82 Yes 37 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain features of the latest version of qtp/ uft 12.1?

599


How to find the path of folder in which the test is saved in qtp?

532


I need Major Help with a Script I recorded in QTP 9.5. I am recording scripts for a Web-based application(s) I have all the URLs for each application in Excel spreadhsheet so that QTP can pull that particular application from the spreadsheet and run it. The problem is QTP isn't recognizing one particular URL so when I hit run in QTP to run this script it opens the internet Explorer but isn't open the URL I have in the Excel spreadsheet. I've retyped the URL and still QTP won't open this Particular one for some reason. The site its self is working fine but for whatever reason QTP won't open it. How do I resolve this? I have a deadline of next Friday the 7th to complete this task so please help me in any way you can. Thanks in advance

1708


When ‘option explicit’ keyword is used in qtp?

744


What is Unicode Compatibility?

1447






Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar

2794


when will you do debug your script? and explain that process?

1449


How to find operating system information using the qtp script?

582


What are the factors on which script execution time is dependent?

605


UFT 12.02 which ALM version will support

980


What is the new version of qtp which is recently released in the market?

637


what are the frame work models of qtp?which frame work you follow in your company?and explain it process?

1957


Explain the views in the QTP GUI?

615


What is the difference between Keyword Driven test and Data Driven test?

1770


If I change the object name in one action will it be updated in all the actions? Or not?

594