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

Please try this

Dim AR2,i
AR2 = Array("C","A","P","G","E","M","I","N","I")

For i=0 to ubound(AR2)
If AR2(i)="G" Then
msgbox "G found in Array"
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 Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers

1583


RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?

2190


What does mean by Scope of Automation?n How we defined it?

1582


Can you list some technologies that support qtp?

558


What is the default object synchronization timeout in qtp?

653






What is recovery scenario manager? When you go for recovery scenario manager?

595


We stored into the objects OR and then write the scripting

1546


When Recovery scenario actually starts while testing the application?

1548


What are the technics follow in writing VB script?

1536


please any one can explain the keyword driven framework. with gmail example.

1629


How many types of parameters are there?

549


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

1382


What is the architecture of your project? Can any one answer for this question plz........

1414


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

564


How u will do versioning in QTP?

1462