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
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 |
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 |
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 |
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 |
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 |
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 |
how to retrieve data from the data table (from a particular cell)
Can we directly start working with QTP without any knowledge on WinRunner? (After getting trsining on QTP)
in my database haveing 3X3 (manas having 3 rows 3 colums) i want to test only (2nd row 3colum) bit how to test either script or any automation plz explain? (Chandana)
I have an application running in Linux server. I am reaching the application through emulators like telnet. My operating system at the client side is Windows XP. Using emulator I am connecting the Linux server and working on the application. Can I automate the testing of the software running in Linux server using QTP. In short, does QTP support the applications running in Linux servers.
Hi, I am using OutputCheckPoint and I am storing the value in the data table. The stored value for column:bedroom:"Bed:4" The another value for column:bathroom:"Bath:2 Full,1 Partial" I need only the no 4 from the first column. I need only the no 2,1 from the second column. I used split array,but it also show array(0) has the value"bed:4" ..... Even though I highlight only 4,It is seleting the full value "bed 4".How can I get only the nos Thank you Uma
What is the use of ordinal identifier in qtp?
How u prepare Test result summary in QTp?
How did you resolve conflicts present in Object Repository?
In Login two edit box which object class property value is same, How to enter into 2nd edit box in qtp by vbscript.
What is Object Spy in QTP?
What is the difference between Dim And Redim
4 Answers Hotel Jobs, IBM, Microsoft,
Hi, Any one have the crack for QTP 10.0,if so could you please send it to phanijuly10@gmail.com