ItemInsert example
;------------------------------------------------------------------------------------------------------------------------------------------
; Example for ItemInsert (strItem, intIndex, strList, strDelimiter)
;------------------------------------------------------------------------------------------------------------------------------------------

; Append at tail.
strList = ""
strList = ItemInsert ("A", -1, strList, ",")
strList = ItemInsert ("B", -1, strList, ",")
strList = ItemInsert ("C", -1, strList, ",")
; ==> strList = "A,B,C"

; Insert at head.
strList = ""
strList = ItemInsert ("A", 0, strList, ",")
strList = ItemInsert ("B", 0, strList, ",")
strList = ItemInsert ("C", 0, strList, ",")
; ==> strList = "C,B,A"

; Insert after index.
strList = ""
strList = ItemInsert ("A", 1, strList, ",")
strList = ItemInsert ("B", 1, strList, ",")
strList = ItemInsert ("C", 1, strList, ",")
; ==> strList = "A,C,B"

Exit