Re: 0-based Indexing

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi Mike, you wrote:

> VB 6.0 defaults to base 0 if Option Base is not used;

After my understanding, 'Option Base' is a global variable, and it's
value also affects code in include files, right?
If so, this is "poison" regarding modular programming, I think.

> also you can set lower and upper bounds:
>
> Dim YearData(1970 to 2010) as Integer
>
> This is rather useful, as you can use 0-based, 1-based, or some other base,
> whichever suits the algorithm at hand.

Full agreement.

Best regards,
   Juergen

-- 
 /"\  ASCII ribbon campain  |    |\      _,,,---,,_
 \ /  against HTML in       |    /,`.-'`'    -.  ;-;;,_
  X   e-mail and news,      |   |,4-  ) )-,_..;\ (  `'-'
 / \  and unneeded MIME     |  '---''(_/--'  `-'\_)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu