Sunday, July 5, 2009

KiXtart: Array List Sorting

Function ArrayList()
; this code creates and populates an ArrayList
? "Example: ArrayList object"
$myArrayList = CreateObject("System.Collections.ArrayList")

; Now, to add an element and sort the ArrayList, all we need to do is:

; [1] add the new element to the ArrayList
; [2] sort the ArrayList
For each $item in $myArrayList
? $item

$x = ArrayList()

1 comment: