Connecting Tech Pros Worldwide Help | Site Map

Re: Perl style splice functions for VB.NET and VBA

Peter Duniho
Guest
 
Posts: n/a
#1: Nov 21 '08
On Thu, 20 Nov 2008 18:27:23 -0800, John Brock <jbrock@panix.comwrote:
Quote:
I have been frustrated for a while by the difficulty of manipulating
arrays in VBA and VB.NET -- in particular the awkwardness involved
in appending, prepending, or inserting new elements -- so to make
my life easier I wrote two functions that act something like Perl's
splice function. [...]
You can either learn the idioms that already exist in the framework, such
as using a data structure more like what Perl calls an "array" (e.g.
List<T>), and extension methods in the Enumerable class such as Skip(),
Take(), etc.

Or you can waste a lot of time reinventing the wheel.

Your choice.

Pete
Closed Thread