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


Please Help Members By Posting Answers For Below Questions

How to check feasibility of the appliction?in automation testing?

1474


Can you write a script to check if the folder exists or not?

517


To which environments does quicktest professional supports?

543


What is difference between shared and local object repository?

589


To which environments does quicktest professional (qtp) supports?

592






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

1412


write a script to verify the image path(src property) of the images which are in web pages.

1810


How many types of actions are there in quicktest professional?

514


Is it possible to call from one action to another action in qtp?

565


What is system testing and what are the different types of tests you perform in system testing?

602


What is checking bitmaps?

556


how to find that tools work well with your existing system?

1404


what function you write to do database testing with the help of qtp?

1360


In qtp, how you can get the last character from a string?

556


Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?

1862