i have an array CAPGEMINI .....Here i need to check whether
G is there or not ..how to do that
and friends i have one big doubt that is
whether it is array or string ,how we come to know that and
where we consider that it's array ,where we consider that
it's an string
because when i want to find the length i have big doubt
whether we need to use len function or ubound ...
ans me for this TWO Questions any one please
Answer Posted / udayakiran
This might be the solution If we consider it as array:
ar2 = Array("C","A","P","G","E","M","I","N","I")
arlen=UBound(ar2)-lbound(ar2)+1 'Finding array length
For p= 0 to arlen-1
If strcomp(ar2(p),"G")=0 Then
msgbox "The letter G is found"
Exit For
End If
Next
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How to check feasibility of the appliction?in automation testing?
Can you write a script to check if the folder exists or not?
To which environments does quicktest professional supports?
What is difference between shared and local object repository?
To which environments does quicktest professional (qtp) supports?
Presently i am working on QTP 8.2 Version,i want to know features in 9.2 version, because i have not sufficient time to put the effort on the 9.2 version
write a script to verify the image path(src property) of the images which are in web pages.
How many types of actions are there in quicktest professional?
Is it possible to call from one action to another action in qtp?
What is system testing and what are the different types of tests you perform in system testing?
What is checking bitmaps?
how to find that tools work well with your existing system?
what function you write to do database testing with the help of qtp?
In qtp, how you can get the last character from a string?
Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?