GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Tech FAQs  >  QTP

 Print  |  
Question:  Hi i am new to VB Scripting, I have a problem to declare an array in QTP. I am using a variable to declare an array which is come in runtime.

Example:

Dim variable1 - declare the variable using dim
variable1 = "senthil" - assign the value which is come in run time
Dim variable1 (10) - declare the dynamic array using dim
variable1 (1) = "kumar" - store the value in array
variable1 (2) = "chandru" - store the value in array

This is the way i tried, but it show the error message like "Name redefined", Is there any possible options available for this, plz send me.




April 04, 2006 06:36:55 #3
 p_senthil   Member Since: April 2006    Total Comments: 2 

RE: Hi i am new to VB Scripting, I have a problem to d...
 

Hi sri

Thanks for ur comment,

Anyway i am not expect this answer, i want to declare an array like senthil(10) and assing the two values, can u understand this.

cheers

senthilkumar

     

 

Back To Question