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 / gabbar

Dim a
a=array("CAPGEMINI" )
If len(join(a))<>len(Replace(join(a),"G","")) Then
msgbox "Occurance of G in array: "&len(join(a))-len(Replace(join(a),"G",""))
End If

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain advantages and disadvantages of ddf?

595


What is the difference between byref and byval in qtp?

579


Explain different types of checkpoints?

556


wht type of User defined functions or Java Releated functions do we write in VB scripting

1823


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






What are the differences between quicktest professional (qtp) and winrunner?

568


How to attach a file to TD?

649


How you are developing the script? Using record and play back or manual?

629


If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?

579


How to check bitmap output value?

623


could any help me please, how to work on visual foxpro application using UFT

1680


How do I get the QTP scripts result in xml format by using vb script function?

1780


For which type of project the iterative model is suitable?

1374


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

1834


Connect to QC using AOM.

1233