GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 44 of 674    Print  
HI

I have a problem in QTP to pass parameter to array.
Example:
Dim mypara
Dim myarray(100)

mypara = "myname"
myarray(mypara) = "senthil" ' its show the error

How is this possible to pass parameter to array
please help me to solve this problem

  
Total Answers and Comments: 1 Last Update: May 01, 2006     Asked by: p_senthil 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 01, 2006 01:54:07   #1  
Rajesh        

RE: HII have a problem in QTP to pass para...

Hi

Array parameter needs to be an integer.

You are trying to pass string. It won't work.


 
Is this answer useful? Yes | No

 Related Questions

Hello,I'm using QTP 8.2. and I want to test an Application which is designed with Oracle Forms 10 g.Before installing the Oracle Addin for QTP 8.2. I was able to open the Application with QTP and IExplorer 6.0.After Installing the Oracle Addin for QTP 8.2. I wasn't able to open the Application neither with QTP nor ÍExplorer.I only installed the Addin. I haven't installed any upgrade or patch!The following failure is shown in the JAVA Console after starting the application:java.lang.VerifyError:
Read Answers (5) | Asked by : SPortz

How can we terminate the application when we encounter a problem or defect in our application while we running the application in Load Runner,Win Runner and QTP.
Read Answers (3) | Asked by : Rohan

I have 10 Edit Boxes in my application. i Named them as Text1, Text2, Text3...Text10. Now i want to set values in these Text Boxes using Loop Statement. Can i Usefor i=0 to 10 browser("b1").page("p1").WebEdit("Text" & i).set "value" &inext**********Is it acceptable WebEdit("Text"&i) ? I am getting error here.Any suggestions?
Read Answers (6) | Asked by : Nagelli Anil Kumar

Latest Answer : hai,u r automate a java application u need to addin manager.this indicates which technology we r using marked on that. ...
Read Answers (3) | Asked by : bunny

When adding object from repository dialog box it doesn't add the new object to the existing parent page(flight confirm mercury) instead it creates new page(flight confirm mercury_2) and adds the new object under it. how to overcome this problem
Read Answers (1) | Asked by : kiran1

I am trying to add object from repository dialog box. it creates new page(flight confirm mercury_2) and adds the new object under it. Ideally it should add new object to the existing parent page(flight confirm mercury). how to overcome this problem
Read Answers (2) | Asked by : kiran1

I am trying to add object from repository dialog box. it creates new page(flight confirm mercury_2) and adds the new object under it. Ideally it should add new object to the existing parent page(flight confirm mercury). how to overcome this problem
Read Answers (2) | Asked by : kiran

Is there any reliable solution for the conversion of existing WinRunner scripts to QTP? if so please pass on your valuable suggestion Thanks a lot.
Read Answers (3) | Asked by : chaithanya

I have downloaded QTP 8.2 version from the mercury website with the Java addIn. I was able to run a very small swing application using the record and play mode. Now I am trying to run our java application which is a client server application using QTP. The application does come up through QTP but its not able to record any of the clicks/operations that I perform. I tried running the java application from outside QTP and then recording as well . QTP is not able to recognize any of the components
Read Answers (1) | Asked by : Prajakti

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 dimvariable1 = "senthil" - assign the value which is come in run timeDim variable1 (10) - declare the dynamic array using dimvariable1 (1) = "kumar" - store the value in arrayvariable1 (2) = "chandru" - store the value in array This is the way i tried, but


 Sponsored Links

 
Related Articles

JavaScript Array Operations

JavaScript Array Operations In this JavaScript tutorial you will learn about different operations with array in JavaScript how to use the for in statement Combining Operations between arrays and within elements of an array joining two or more arrays and joining elements of an arrays along with synta
 

JavaScript Array Object Methods – Part II

JavaScript Array Object Methods Part II In this JavaScript tutorial you will learn about on array object methods slice splice toString shift and unshift methods along with general syntax and examples mosgoogle center slice By using the methods of the array object the programmer is able to retriev
 

JavaScript Array Object Methods – Part I

JavaScript Array Object Methods Part I In this JavaScript tutorial you will learn about Array Object Methods concat join pop push and reverse methods  along with general syntax and examples mosgoogle center concat The concat method is used to join two or more Array objects together to pro
 

JavaScript Array Object

JavaScript Array Object In this JavaScript tutorial you will learn about JavaScript Array Object its properties and methods mosgoogle center Usage of the Array Object The Array object is used to store a set of values in a single variable name There are many operations involved with Array object De
 

How Critical Thinking Can Help You Solve Problems

How Critical Thinking Can Help You Solve Problems Critical thinking is a process in which a person will use their mind to analyze or study information The information that is studied will typically be offered as something that is absolute However the person that is studying will reason on it in orde
 

How Brainstorming Can Help You Solve Problems

How Brainstorming Can Help You Solve Problems Brainstorming is one of the most creative ways of solving problems However brainstorming may not always be used to solve a single problem It is sometimes used to come up with a list of possible solutions that can be used to solve a problem mosgoogle The
 

Creative Problem Solving

Creative Problem Solving Creative problem solving is a method used in situations where knowledge and thinking are not enough Using creativity to solve a problem can be extremely challenging and will take large amounts of effort on the part of those who are trying to solve the problem mosgoogle Often
 

How Problem Solving Can Help You In Math

How Problem Solving Can Help You In Math Math is a subject which is hated by many people This is unfortunate because mathematics lays down the foundation for all of the technology we have today Computers cell phones cars and space shuttles would not exist if it were not for mathematics mosgoogle The
 

How Role Playing Can Help You Solve Problems

How Role Playing Can Help You Solve Problems The use of role playing to solve problems is composed of multiple methods Many of these methods involve using your mind in order create a different reality These techniques will allow you to place an emphasis on what you desire rather than what you alread
 

How To Effectively Solve Problems

How To Effectively Solve Problems When you are faced with a difficult problem you may need the help of someone else In some situations the problem may require you to create a plan which can help you solve it If you are in a situation like this there are a number of things you can do to effectively s
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape