Can anyone help me in write coding to get this pattern
*
**
***
****
Answers were Sorted based on User's Feedback
Option Explicit
Dim i,j,k
for i=1 to 5
for j=1 to i
k=k&"*"&" "
Next
k=k&" "&vbnewline
next
msgbox k
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / anil
For i=0 To 4
For j=0 To i
vstr=vstr&"*"&""
Next
vstr=vstr &" "
Next
msgbox vstr
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / chandu
a=4
for i=1 to a step 1
b= string(i,"*")
c=c&" "&b
next
msgbox c
| Is This Answer Correct ? | 1 Yes | 1 No |
accept a string & display whether a is present or not
We have an application which is built using multiple technologies and are using QTP as the tool for Automating the same. While we spy over a combo box in this application, we get the object name as a "Combo Control" and we are not able to perform any action over this object in either selecting or checking any method for the same like "Exist" etc. Hence we thought of a solution and the same can be found below
Mention what is select case statement?
What is the equivalent of VBScript?s On Error In Jscript ?
What is the use of the formatdatetime function in the vbscript language?
Explain vbscript in detail?
Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository
What variable can you use to share info across the whole application for one user?
a;;b;c;;;d in this string output is abcd will come how can we do that in vbscript in QTP testing?
Explain the filter expression?
My questions is while writting descriptve programming, lets take flight reservation. Line1: systemutil.Run "D:\Program Files\Mercury Interactive\QuickTestProfessional\samples\flight\app\flight4 a.exe" dialog("text:=Login").WinEdit("attached text:=Agent Name:").Set "mercury" dialog("text:=Login").WinEdit("attached text:=Password:").Set "mercury" dialog("text:=Login").WinButton("text:=OK").click window("text:=Flight Reservation").Activate window("text:=Flight Reservation").ActiveX ("acx_name:=MaskEdBox").Type "111111" window("text:=Flight Reservation").WinComboBox("attached text:=Fly From:").Select "Frankfurt" window("text:=Flight Reservation").WinComboBox("attached text:=Fly To:").Select "London" window("text:=Flight Reservation").WinButton ("text:=FLIGHT").Click window("text:=Flight Reservation").dialog("text:=Flights Table").WinList("text:=From").Select "13536 FRA 08.00AM LON 08.45AM SR $163.00" window("text:=Flight Reservation").dialog("text:=Flights Table").WinButton("text:=OK").Click window("text:=Flight Reservation").WinEdit("attached text:=Name:").Exist window("text:=Flight Reservation").WinEdit("attached text:=Name:").Set "sagar", Now i m getting the error in the last line. it is not accepting the WinEdit("attached text:=Name:") Please do solve this urgent...! and i want to know how to insert additional properties for an object and which properties we need to select from the object spy.
Which event is triggered when mouse focus comes out of an element in the vbscript language?