Re: newbee need help with code

From: Herfried K. Wagner [MVP] (hirf-spam-me-here_at_gmx.at)
Date: 01/31/05


Date: Mon, 31 Jan 2005 11:55:23 +0100


"Cor Ligthert" <notmyfirstname@planet.nl> schrieb:
> 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.

VB does /not/ support 1-based arrays. It only supports 0-based arrays, but
/collections/ are 1-based.

-- 
 M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
 V B   <URL:http://dotnet.mvps.org/dotnet/faqs/> 


Relevant Pages

  • Re: newbee need help with code
    ... One that fits the zero indexer commands ... One that fits the one indexer commands. ... VBNet, although VB6 does not work with the framework and it could have been ...
    (microsoft.public.dotnet.languages.vb)
  • Re: [fitsbits] CRPIX clarification
    ... the proposed changes to the new draft FITS ... array indices} that range in value from 1 to NAXISj on axis j. ... Integral pixel coordinate values coincide with the corresponding array ... If anyone objects to the use of the phrase "regular lattice ...
    (sci.astro.fits)
  • Re: Class and inheritance
    ... > pick the first on the list that fits. ... #using poss for possibilities, bad choice ... we're depending on the order of the array called "a". ...
    (comp.lang.ruby)
  • Re: Organizing data for readability and efficiency
    ... the performance of single look-ups into each (rather than by whether the nature of your data best fits an array or best fits a hash), then I say you are engaging in micro-optimization. ... The difference between array access and hash access is small enough that if you are concerned about it, only actual tests on actual data will be satifactory. ...
    (comp.lang.perl.misc)
  • Re: Array Formula Help -IF / Else clause?
    ... I'm just getting to grips with Array formulae, and one of the formula I ... Creates (and sums) an array of 1s for every ... Isn't the second IF basically the ELSE clause of the first IF? ... I don't understand how this fits my usual ubderstanding of the ELSE ...
    (microsoft.public.excel)