Micro Focus QTP (UFT) Forums
Public Array - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Public Array (/Thread-Public-Array)



Public Array - Avis88 - 02-17-2011

Ok Here's my problem, I declared a public dynamtic array in Action1 and redim it to the size i wanted it later in the list, now I want to use that same array in action2, but how do I tap into the data from the array in another Action.

Code looks like this something like this

Public ABC(), EFG() ''Declared my Array public

''''''QTP Code finds out size ABC needs to be by how many total names are listed this week and what size EFG needs to be by how many new names are listed this week

REDIM ABC(a), EFG(b) '''Redefine the size so I dont have to waste space""

''''Code values to each place in array"


The problem is here!

I start writing a new script named Action2 and I've connected the two scripts together, but when I run the scripts I'm unable to get my results from my array's? Can any one help?