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

Answers were Sorted based on User's Feedback



how to get the particular chr in an array list the question is ....i have an array like this ABCD..

Answer / gabbar

a="ABCD EBCF GBCH IBCJ"
b=Split(a," ")
For i=LBound(b) to UBound(b)
msgbox "count: "&i&" "& mid(b(i),2,2)
Next

Is This Answer Correct ?    4 Yes 0 No

how to get the particular chr in an array list the question is ....i have an array like this ABCD..

Answer / koteswar

str = " ABCD EBCF GBCH IBCJ HERE I NET"
n = split(str, "BC")
cnt = ubound (n)
msgbox cnt

Is This Answer Correct ?    2 Yes 1 No

how to get the particular chr in an array list the question is ....i have an array like this ABCD..

Answer / snegha

ar2=Array("ABCD","EBCF","GBCH","IBCJ")


arlen=UBound(ar2)-lbound(ar2)+1 'Finding array length

For p= 0 to arlen-1
msgbox Mid(ar2(p),2,3)
Next

Is This Answer Correct ?    1 Yes 0 No

how to get the particular chr in an array list the question is ....i have an array like this ABCD..

Answer / dinesh1433

Dim AR2,i

AR2=Array("ABCD","EBCF","GBCH","IBCJ")

For i=0 to ubound(AR2)
If (Instr(AR2(i),"BC")<>0) Then
msgbox "BC found in Element :"&AR2(i)
End If

Next

Is This Answer Correct ?    2 Yes 1 No

how to get the particular chr in an array list the question is ....i have an array like this ABCD..

Answer / rajesh

hai.. Koteswar
i need to say thanks for your quick reply ..
but my question is how to get BC IN A ARRAY means i need to
display it.....,BUT YOU ANS THAT HOW MANY BC ARE THERE IN
THE ARRAY LIST .....IF POSSIBLE PLEASE GIVE A COMMANDS AGAIN...

Is This Answer Correct ?    0 Yes 0 No

how to get the particular chr in an array list the question is ....i have an array like this ABCD..

Answer / pushkar1206

This will print BC 4 times.

a="ABCD EBCF GBCH IBCJ"
b=Split(a," ")
For i=0 to ubound(b)
msgbox mid(b(i),2,2)
Next

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

please give me the code for doing retesting of gmail login page using functions so the function has to give the value

0 Answers  


Hi, Any one have the crack for QTP 10.0,if so could you please send it to phanijuly10@gmail.com

2 Answers  


What is the Test Object model in QTP?

3 Answers  


Which Databases supports for QTP?

2 Answers  


Is there a function to find the number of occurrences of sub strings within a string?

1 Answers  






What is the architecture of framework

0 Answers  


what is the difference between action and function

11 Answers   AppLabs, BirlaSoft, Infosys,


will QTP accepts javascript?

14 Answers   AppLabs,


What is the extension for Recovery scenario?

2 Answers  


What is recovery scenario manager? When you go for recovery scenario manager?

0 Answers  


Suppose i have a script which is having 100 lines.I want to execute that script starting from line no 75.means first qtp should read the script from line no 75 how can u do it.

5 Answers   Lehman Brothers, rsystems,


Write the vb script for the lowest and highest values of an array?

1 Answers   Manhattan,


Categories