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

Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you

1443


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

1352


what is the difference between data driver & data driven and driver script?

2137


What are the different types of recording modes?

529


Explain in brief about the qtp automation object model (aom).

557






I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.

1579


How to analyzing test results using quicktest professional (qtp)?

584


In the website, the protocol has been changed http: to https what you will do? Tell me your approach?

561


How does quicktest professional (qtp) identifies the object in the application?

581


What is checking bitmaps?

548


Explain about Test Fusion Report of QTP?

610


What are the flaws in water fall model and how to overcome it?

557


UFT 12.02 which ALM version will support

980


I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .

1718


how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page

1825