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 |
Why use Regular Expressions?
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?
How to open a new test using quicktest professional?
How to handle Run-time errors?
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.
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.
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.
Can we run test with out adding object in object repository? How it is possible?
In qtp, explain what is qrs file?
What is meant by virtual obj and Y do v need virtual obj configuration.
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
Give the syntax to import/export xls into qtp.