Question - How to define array in QTP?
Answer -
Array can be defined in 3 ways in QTP
a) Fixed size array in QTP
Dim A (10) – single dimension
Dim MyTable (5,10) – multi-dimension
b) Dynamic array-size not fixed
Dim MyArray()ReDim MyArray(25)
c) Using Array Function in QTP
A= Array (10, 20,30)
B= A(2) ‘ B is now 30