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
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.
Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.
Mention what is the main difference between function and sub-procedure?
What is loose binding? Why is it not a good practice to use it?
How to create a function in vbscript?
create a form to accept username and password validate the username and password with using message box, display the corresponding user message
How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...
how to check whether link is disabled in QTP??
Is VB Script Case sensitive or Case insensitive?
what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?
how to automatically update the sql server2005 database records when insert in vb6?
How will you convert a given number to long in vbscript?
how to write validation function for date in vb script
Why is it recommended to close the database connection every time after the work is completed?
Explain How do you create a recordset object in vbscript?