write a text script to display * as below
**********
**** ****
*** ***
** **
* *
* *
** **
*** ***
**** ****
**********



write a text script to display * as below ********** **** **** *** *** ** ** * ..

Answer / chandra

for i = 1 to 5
for j = 1 to i
k = k & "*"
next
k = k&vbcrlf
Next
Msgbox k

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More VB Script Interview Questions

How many types of operators are available in the vbscript language?

0 Answers  


how to genarate a random numbers in vb?

2 Answers  


write a vb-script code to delete all the mails in my gmail in the year 2011

1 Answers  


How to pass argument by reference to a function in vbscript?

0 Answers  


Hello All, In QTP 9.2 for Mozilla Firefox, there is webelement in my application, I tried to click on that using decsriptive programming, but it does not work. and for this i tried this code too: Set obj = CreateObject ("Mercury.DeviceReplay") absx = Browser("").Page("").WebElement(".").GetROProperty ("abs_x") absy = Browser("").Page("").WebElement(".").GetROProperty ("abs_y") obj.MouseMove absx, absy obj.MouseClick absx, absy, 0 But it is not clicked. Can anyone help me out for this problem. Thnx in Advance

1 Answers  






what is used of Property........End Property loop ? how to write the script for it?

0 Answers  


How will you convert a string to lower case string using vbscript?

0 Answers  


Which operator can be used to check if two numbers are equal or not in vbscript?

0 Answers  


Consider there are objects in a webapp which are identified by QTP. Suppose you know only the logical name of a object(absolutely nothing else about it). Which approach will you take to find the "micClass" of the object(You can't use Object Spy, or can't add the object in repository)?

2 Answers   HCL,


I need help to write a function in vbscript to click on a link. That link looks like a tab. There are 6 tabs. When I click on 1 tab it should show as "on". when I spy the class property is on. But for the one which is not clicked the class property is blank. I have objects created in our custom object repository. Please give me some idea.

1 Answers  


How do you get the value of a combo box in Javascript?

2 Answers   Aspire,


how to write validation function for date in vb script

0 Answers  


Categories