
I use arrays all the time, so I thought I'd put the functions I commonly use together into a library. Easy to read code. Routines include:
- ArrayCopy(List, ListToCopyFrom, [StartAt], [Length])
- ArrayAppend(List, Item)
- ArrayRemove(List, Index)
- ArrayInsert(List, Index, Item)
- ArrayConcatenate(List, ListToCopyFrom)
- ArrayTrim(List, [TrimFromBeginning], [TrimFromEnd])
- ArraySplice(List, StartAt, Length, [ListToCopy])
- ArrayToString(List, [Separator])
Clean code with lots of comments in reusable module. Also includes an extensive reference in HTML. Tested with VB6, but should be compatible with all modern versions and VBScript (with minor modifications).
Please vote for this code if you like it.