My god, vbscript is such a pain sometimes!
I just use. Net object in this instance since im sure its intalled on your 
computer. Look how simple.

Set outputLines = CreateObject("System.Collections.ArrayList")

'add lines
outputLines.Add 9
outputLines.Add 5
outputLines.Add 3
outputLines.Add 0
outputLines.Add 50
outputLines.Add 3

outputLines.Sort()
For Each outputLine in outputLines
    'Display all of the elements
    'MsgBox outputLine
Next

MsgBox "Element #0 " & outputLines(0)
MsgBox "Element #1 " & outputLines(1)   'This is what you want, second element
www.qtptutorial.net

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to