Micro Focus QTP (UFT) Forums

Full Version: String Array Declaration
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Dear Experts
Need help

I have worked in Peoplecode (which is nothing but a Ctrl-C+Ctrl-V) of Java, but new novice to VB Script and QTP UFT

My requirement is - I need to declare a string array, enter the values in it based on a 'For-Next' loop and then later, again retrieve the values
Can anyone kindly provide the syntax for the same
Its very urgent

Any help is appreciated

Kindly note - I did google and got the syntax for the following -
Dim myArray()
ReDim myArray(1) 'Initialize the array


But not sure how to store & retrieve the values of the array

Kindly reply ASAP
Many Thanks
Bhuvaneshwari Dharmaraj