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



hai friend's .. my question is a[0]=I a[1]=N a[2]=D LIKE IT GO'S i need output IND..

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

hai friend's .. my question is a[0]=I a[1]=N a[2]=D LIKE IT GO'S i need output IND..

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

hai friend's .. my question is a[0]=I a[1]=N a[2]=D LIKE IT GO'S i need output IND..

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

hai friend's .. my question is a[0]=I a[1]=N a[2]=D LIKE IT GO'S i need output IND..

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

Post New Answer

More QTP Interview Questions

Why use Regular Expressions?

1 Answers  


suppose im having a string wipro123xyz i need to get the value 123 only from the string today 123 will be in the middle from tommorow it will be changing to front or back how to get the no if it changes continously?

2 Answers   Wipro,


How to open a new test using quicktest professional?

0 Answers  


How to handle Run-time errors?

1 Answers   Crea,


Hi All, I am using QTP for one of the Desktop application which uses Keyboard inputs like 'Tab ,F7 etc' and also mouse (Click). After recording when i am running the Script ,it is not able to recognize the keyboard inputs like F7,Tab and mouse Click because of which either i have to skip that part or manually do the inputs. Please answer how can i make script more flexible so that it will recognize both keyboard and mouse operations.

3 Answers  






when i was doing the Flight reservation with QTP calculating the tickets i got Type mismatch: '[string: ""]' in "If cdbl(tot)=cdbl(p)*t Then" error. where I am doing the mistake Could you please tell me.

5 Answers  


Hi, I am working on microsoft infopath forms..It is standalone form..(not dotnet or web.) . I am not able to indentify any objects in it.. I am currently using active accessibility in the macro for the same but its execution is too slow.. Kindly help in case you have better solution.

0 Answers  


Can we run test with out adding object in object repository? How it is possible?

0 Answers  


In qtp, explain what is qrs file?

0 Answers  


What is meant by virtual obj and Y do v need virtual obj configuration.

4 Answers  


Hi, i am rani ,i am putting 1+years of fake exp ,so pls anyone explain how i get project (in real time) ? how it is tested ex: in banking ,test the number of textboxes in one window

3 Answers  


Give the syntax to import/export xls into qtp.

0 Answers  


Categories