Re: 0-based Indexing
- Posted by Juergen Luethje <j.lue at gmx.de> Jul 17, 2003
- 516 views
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 | '---''(_/--' `-'\_)