Remove element from an array in vbscript.
Posted on 2014-04-29
I have an array named 'MemberGroup' which has a number of elements e.g.
Members = ("APPLES 145","BANANAS 234","CELERY 897","DOG 787","ENGINE 546","FLURIDE 878")
I am looking for the best way in vbscript that I can remove an element from this array that contains e.g. 234 - which would remove the BANANAS 234 element? It is important that the array reflects the correct new size and that the element order is not changed in any way.
I am sure this is very simple - any ideas?