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.
Thanks fro ur comments from ur comments i got answer for my problems i am really very sorry i misunderstand ur comments i have another problems in array is to pass the parameter in variable to array.
Example:
Dim myname
Dim myarray(100)
myname arra_para
myarray(myname) senthil ' pass the parameter by variable
Its like myarray( arra_para ) senthil
Please help me about this problem for how to pass parameter to array
RE: 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 i
RE: 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 i
You can daeclare a variable as under and then use it as an array:
dim a a Array("kumar" "chandru" "abcd" "efghijkl")