by James Vincent Carnicelli (21 Submissions)
Category: Data Structures
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (17 Votes)
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.