write a vb script to display
*****
*****
*****
*****
*****
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Why is the use of exit do or exit for statements within loops discouraged?
How to make sure that items in a wintree are sorted al?
Difference between dim,public and private variables in vb script?
about vb scripting programs this type of all question& answers
Mention what is byref and byval parameters in vbscript?
Explain the scope of the variables using dim, public, and private keywords respectively.
Explain about .wsf files?
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
What is the use of the date function in the vbscript language?
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..............
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.