Tuesday, October 19, 2010

VBScript DIM Preserve two dimensional array QTP

DIM PRESERVE 2D array VBScript

Example usage:

WRITING into 2D array
Dim b()
for i=0 to n
   for j=0 to m
            ReDim b(i,j)
             b(i,j)= Datatable.Getsheet().getparameter().value
    next
next


READING from 2D array
For i=0 to n
   for j=0 to n
             msgbox b(i,j)
   next
next

No comments:

Post a Comment