write a vb script to generate the following pattern

*****
****
***
**
*

Answer Posted / miko

Dim x,i,j

For i=1 To 5
For j=1 To i
x=x&j
Next
x=x&vbNewLine
next
MsgBox x

***********output*********

1
12
123
1234
12345

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you get a random number between 0 and 1 in vbscript?

727


Which in-built function related to an array joins substrings into one string in the vbscript language?

522


How will you get a combined string from array of string in vbscript?

553


Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.

1598


What is the extension of the vbscript file?

557






1. How do declare public variable in vb scripts?

1581


How to delete a cookie using vbscript?

561


wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

1505


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2400


What is the output of a + b in vbscript if a = 5 and b = 10?

2136


Which data type/types are supported by vbscript language and what are their specialties?

605


Explain the .wsf files?

533


Which function allows you to instantiate an object given its programmatic identifier or progid?

566


Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar

1972


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

2549