write a vb script to display
*****
*****
*****
*****
*****

Answers were Sorted based on User's Feedback



write a vb script to display ***** ***** ***** ***** *****..

Answer / mudaseer

for i=1 to 5 step 1
for j=1 to 5 step 1
vstr=vstr & "*" & " "
next

vstr=vstr & vbnewline
next
msgbox vstr

Is This Answer Correct ?    4 Yes 0 No

write a vb script to display ***** ***** ***** ***** *****..

Answer / sumathi

For i =1 to 5
var=string(5,"*")
print var
Next

Is This Answer Correct ?    0 Yes 0 No

write a vb script to display ***** ***** ***** ***** *****..

Answer / eswar

cnt =0
x = "*"
For i=1 to 25
y=y&x
cnt = cnt+1
If cnt = 5 Then
cnt = 0
y = y&" "
End If
Next
MsgBox y

Is This Answer Correct ?    0 Yes 0 No

write a vb script to display ***** ***** ***** ***** *****..

Answer / prathyusha

for i=1 to 5
for j=1 to 5
v=v&"*"
next
n=n&vbcrlf&v
next
msgbox n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB Script Interview Questions

In our application qtp unable to indentify the menu items,we tried number of times to add objetcs into object repository but fail. through normal recording mode only objects going to add into repository but while running same recording script qtp showing a error like " unable to indentify the object". in repository there is no any properties and pro values for that object and also i tried with virtual object config also unable to find the object in application and in repository. Then what i have to do to identify menu objects????? can anybody hell me pls..............

2 Answers   Blue Star,


write any ttest cases using check points and parameterization

0 Answers  


What is wrong with the following code: <%afname="header.asp"%><!?#include file ="<%=afname%>"?>

1 Answers  


How do you write an SQL insert statement?

4 Answers   HCL,


I want to count the total no of links present in yahoo home page. The script like Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo!India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing But while running the script it is fail (the object not present in the object repository).How to overcome please tell me the detail steps...for QTP9.30

1 Answers  






Give examples where vb script can directly run on users system with windows as os?

1 Answers  


Difference between Function and Sub routine?

0 Answers   Polaris,


Write a program to display the numbers in the below format using for loops? 1 2 3 4 5 6 7 8 9 10 11 12 and Write a program to display the numbers in the below format using for loops. 1 2 3 4 5 6 7 8 9 10

2 Answers  


Explain about vb script?

0 Answers  


What is difference between Active screen and movie screen recorder in QTP 9.2?

1 Answers  


How to check the particular window is exist or not with out using check points

2 Answers  


How to get the background color of a weblist?

3 Answers   Accenture,


Categories