Re: newbee need help with code

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Cor Ligthert (notmyfirstname_at_planet.nl)
Date: 01/31/05


Date: Mon, 31 Jan 2005 09:42:46 +0100

Crouchie,

Because of probably compatible reasons does the array in VBNet create two
types arays in one.
One that fits the zero (C language compatible) indexer commands
One that fits the one (VB language compatible) indexer commands.

Therefore there is always created one item extra than you want. That is why
people like me (and probably Herfried) create arrays with indexes that are
forever -1 and start always with zero.

I don't (probably as you) understand why they did not build in with commands
as "mid" the method to subtract internal 1 from the indexer. However, they
did not and now because it is become standard for a long time not changable.

Probably one of those places where they did not wanted to change VB6 from
VBNet, although VB6 does not work with the framework and it could have been
only a framework part.

However the last parts are only my idea.

Cor