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

1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.

1514


Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

1537


Mention what is the main difference between function and sub-procedure?

543


What is loose binding? Why is it not a good practice to use it?

631


How to create a function in vbscript?

586






create a form to accept username and password validate the username and password with using message box, display the corresponding user message

2159


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

2901


how to check whether link is disabled in QTP??

5629


Is VB Script Case sensitive or Case insensitive?

631


what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?

1430


how to automatically update the sql server2005 database records when insert in vb6?

1485


How will you convert a given number to long in vbscript?

490


how to write validation function for date in vb script

2140


Why is it recommended to close the database connection every time after the work is completed?

496


Explain How do you create a recordset object in vbscript?

564