hai friend's ..
my question is
a[0]=I
a[1]=N
a[2]=D LIKE IT GO'S
i need output INDIA ,using simple string how will u do?
can any one tell really need full..
Answers were Sorted based on User's Feedback
Answer / karthick
good ans ..same time instead of using
msgbox a(0)&a(1)&a(2)&a(3)&a(4)
why can't we use join function...i mean like this..
Dim myres,a(4)
a(0)="I"
a(1)="N"
a(2)="D"
a(3)="I"
a(4)="A"
myres=join(a)
msgbox myres
| Is This Answer Correct ? | 20 Yes | 1 No |
Answer / manjunathareddy
Dim a(4)
a(0)="I"
a(1)="n"
a(2)="d"
a(3)="i"
a(4)="a"
Msgbox a(0)&a(1)&a(2)&a(3)&a(4)
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / kishan
dim arr(4)
arr(0)="I"
arr(1)="N"
arr(2)="D"
arr(3)="I"
arr(4)="A"
msgbox join(arr)
(or)
str=""
for i=0 to ubound(arr)
str=str&arr(i)
next
msgbox str
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sunita
dim str1,a(4)
a(0)="I"
a(1)="N"
a(2)="D"
a(3)="I"
a(4)="A"
for i=0 to ubound(a)
str1=str1+a(i)
next
msgbox str1
May be this is another way out.....correct me if i m wrong.
| Is This Answer Correct ? | 1 Yes | 0 No |
can any one tell me what is syntax error in line msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist 'code ************** Call login("lal="," " ) wait(5) Call errormsg("Invalid email address. [?]" ) Function errormsg(msg) msgexist=Browser("title:=Gmail: Email.*").Page( "title:=Gmail: Email .*").WebElement(innertext=&msg).exist if msgexist then Reporter.ReportEvent micPass,"enter valid username or pwd ",msg else Reporter.ReportEvent micFail, "entered valid uname and pwd",msg end if End Function
What are the advantages of QTP over WinRunner?
how to get the particular chr in an array list the question is ....i have an array like this ABCD EBCF GBCH IBCJ HERE I NET TO GET ONLY "BC" FROM ALL HOW TO GET IT HELP ME ANY ONE THANKS
how will you handle the situation when object is not caputred during record?
Error handling
How will you compare keyword and expert view?
what is the Exact Meaning of Environment Variables?
How to make Non reusable actions into reusable action? is that feature available in QTP
what is framework and types of framework? Need of framework in automation? write folder strucuture of framework.
can i compare two databases using QTP ?
When you are running a batch test of 5 scripts and in 2nd script appln crashed, what hpns then?
1) What is the diff Between GetRoproprty and Gettoproperty? 2)What is Redim?