Micro Focus QTP (UFT) Forums
Array function for Static 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: Array function for Static Array (/Thread-Array-function-for-Static-Array)



Array function for Static Array - anbarasu - 11-20-2009

Hi,

Will it possible to assign a value to static array by Array function. I tried but it does not work

Code:
dim a(3)
a=Array('Value1", 2,3)



RE: Array function for Static Array - basanth27 - 11-20-2009

I thought it would be like,

Code:
Dim a(3)
a(0) = "anbu"
a(1) = 1234

etc...


RE: Array function for Static Array - anbarasu - 11-20-2009

So we cannot use Array function rite....
I would like to add some more points...
1. We can not redefine to by Redim function...
2. Array and Redim, Preserve for Dynamic array not for static.....
Kindly confirm..................Smile