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

can we do load testing , by using QTP......?

1 Answers  


Give the syntax to import/export xls into qtp.

0 Answers  


How good are you in writing VBscript code for your application? Can you completely write VBscrit for your project with out using recording mode in QTP?

3 Answers   CTS,


why we use check points , In qtp we use the any check points , what r they , when and why

1 Answers   Polaris,


· What should test in BANKING DOMAIN application ?

2 Answers   TCS,






Explain the QTP Tool interface.

2 Answers   Crea,


What is the descriptive programming?

0 Answers  


i need qtp tutorial. pls send it to sridhar.k151@g mail.com

0 Answers  


How i can use and create Library functions in QTP and what is the proces .

2 Answers  


What is time parameter?

1 Answers  


Could you please any body help me.for example in web table in the first row and first column there are 3 links like l1,l2,l3 having indexes 0,1,2 but second time links will change their order like l2,l3,l1 and indexes also changed how can we handle this situvation with script....

2 Answers  


I want to export the datasheet to excel.Instead of total file it exports only data without headers.How to solve this problem?

1 Answers   FAI,


Categories