So documenting something random makes it non-random?
It is NOT random, and it is NOT documented as being random, and you are an
idiot for saying so.
Let's see, arrays are zero based . . .
Wrong! The base of arrays in VB6 is determined by your code. The base can be
zero or 1 or just about any other integer you desire, depending on your
personal choice. It is all very clearly documented and is very definitely
NOT random.
What is that I'm actually wrong on Mike?
You are wrong when you say that arrays are zero based and you are wrong when
you say that the base is random. How many other things would you like to be
wrong on?
Yes, Mid and Left and Right and Instr and other string handling functions
count the first character of a string as being character number one. It is
definitely NOT random.
Surely to make all this non-random the documentation
would have to come up with a valid reason that some
are 0 and some are 1.
That statement of yours is ill thought out and illogical and completely
wrong. You obviously do not understand the meaning of the word random.
Perhaps you should look it up in your favourite dictionary. The fact that
the Mid function and other string functions count the first character of a
string as being character number 1 whereas the base of an array is as
determined by the programmer and otherwise defaults to zero does NOT make
either of those things random. Having the facility to specify the base of an
array yourself is sometimes quite useful and often enables you to visualise
things more easily for certain specific tasks, but if you would prefer to
always have all your arrays zero based then you can do so. It is up to the
programmer, and it is very clearly documented. It is NOT random.
I asked you to post the relevant parts of the documentation
you are referring to. You are unable to do that?
Of course I am able to do that! How much do you want? Here is an extract
taken verbatim from the help files. If you want any more then you'll have to
drag yourself out of your lazy stupor and find it yourself:
Option Base Statement. Used at module level to declare the default
lower bound for array subscripts.
Syntax: Option Base {0 | 1}
Remarks: Because the default base is 0, the Option Base statement
is never required. If used, the statement must appear in a module
before any procedures. Option Base can appear only once in a
module and must precede array declarations that include dimensions.
Note: The To clause in the Dim, Private, Public, ReDim, and Static
statements provides a more flexible way to control the range of an
array's subscripts. However, if you don't explicitly set the lower
bound with a To clause, you can use Option Base to change the
default lower bound to 1.
Mike