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

what is the frame work in J-meter?

1605


If u r using library files (Instead of Check Points) , How do u do bitmap check ?

1459


When and why to use descriptive programming?

612


What is the difference between Keyword Driven test and Data Driven test?

1777


How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?

574






Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?

1488


What are the data types in qtp?

669


How is the Bitmap checkpoint different from Image checkpoint?

630


write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object.. (give a filter condition only WEbelement- not easy need to use some more property while giving filter condtions- use google for your help...))

1507


What are advantages of test automation?

672


How to build scripts that access data from external sources?

1614


What are the differences between table and db checkpoints?

537


How many types of parameters are available in quicktest professional (qtp)?

587


after click on compose mail how can we attached a file in qtp with vbscript code

1621


Can you brief the hurdles you faced during Automation testing?

580