Google News
logo
QTP/UFT - Interview Questions
How to define array in QTP?
Array can be defined in 3 ways in QTP
 
* Fixed size array in QTP
Dim A (10) – single dimension

Dim MyTable (5,10) – multi-dimension
 
* Dynamic array-size not fixed
 
Dim MyArray()ReDim MyArray(25)
 
* Using Array Function in QTP
A= Array (10, 20,30)

B= A(2) ‘ B is now 30
Advertisement