Re: Setting based 1 Arrays
- From: "Michael Williams" <Mike@xxxxxxxxxxxxxxxxxx>
- Date: Sat, 2 May 2009 08:17:24 +0100
"Michael C" <mike@xxxxxxxxxx> wrote in message news:ejIDKDtyJHA.4136@xxxxxxxxxxxxxxxxxxxxxxx
Ok, let me see mike. I start a copy of vb6 and type in this code
Private Sub Form_Load()
Dim x(10)
x(0) = 5
End Sub
hmmmm, seems to me that that array is zero based.
Not necessarily. If you do not actually specify the desired base in the declaration then it will default to the value you have assigned using the Option Base statement, or to the default setting of zero if you have not used Option Base. It's all clearly described in the documentation.
If the documentation says otherwise then it is wrong.
No, the documentation is fine. It is you who are wrong, Michael. You have not read it, or if you have done then you have failed to understand it. As I said, it's all clearly described there.
However, some other areas of vb6 are most definately 1 based.
Which areas are 1 based and which are zero based appears to
be random.
Nope. It's not random at all. It is all clearly described in the documentation.
You're not being very clear mike . . .
I think it is you who is not being clear, possibly because of your lack of understanding due to the fact you have not read the documentation. Don't worry too much though. Programming is always a bit awkward at first. You'll pick it up if you stick at it ;-)
Mike
.
- Follow-Ups:
- Re: Setting based 1 Arrays
- From: Michael C
- Re: Setting based 1 Arrays
- References:
- Re: Setting based 1 Arrays
- From: Michael C
- Re: Setting based 1 Arrays
- From: Michael Williams
- Re: Setting based 1 Arrays
- From: Michael C
- Re: Setting based 1 Arrays
- From: Michael Williams
- Re: Setting based 1 Arrays
- From: Michael C
- Re: Setting based 1 Arrays
- Prev by Date: Re: Create MDB, create Table in it and import a DBF
- Next by Date: Re: Setting based 1 Arrays
- Previous by thread: Re: Setting based 1 Arrays
- Next by thread: Re: Setting based 1 Arrays
- Index(es):
Relevant Pages
|