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

Why is the use of exit do or exit for statements within loops discouraged?

0 Answers  


How to make sure that items in a wintree are sorted al?

0 Answers   Ness Technologies,


Difference between dim,public and private variables in vb script?

0 Answers  


about vb scripting programs this type of all question& answers

0 Answers  


Mention what is byref and byval parameters in vbscript?

0 Answers  






Explain the scope of the variables using dim, public, and private keywords respectively.

0 Answers  


Explain about .wsf files?

0 Answers  


How to write a general script which should does the following a). If a page object is given, it should identify the page object of the corresponding page(site). b). It should identify all the links of that particular page. in QTP tool?

2 Answers   IBM, Infosys, Wipro,


I need to get some data from data base and store this (retrieved) data in a excel sheet using VB script in QTP9.0 I have created connection for data base I have created as excels sheet by using Set XL=CreateObject("Excel.Application") XLworksheet.cells(1,1).value= rs.fields.item("<<The data retrieved from data base >>") I have taken a for loop and changed the cells values (1 as i and another 1 as j) But still I am not able to get Plz kindly tell me know this . It is very urgent

0 Answers  


What is the use of the date function in the vbscript language?

0 Answers  


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,


I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.

0 Answers  


Categories