Re: array notation
- From: "Peter Proost" <pproost@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 28 Sep 2005 13:44:54 +0200
I didn't know that but I should have
Greetz Peter
--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning.
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx> schreef in bericht
news:edkCjzBxFHA.2008@xxxxxxxxxxxxxxxxxxxxxxx
> "Peter Proost" <pproost@xxxxxxxxxxxxxxxxxx> schrieb:
> > You need to declare and array and then if you want to limit it for
example
> > to 3 items (0,1,2) you need to do a redim preserve
> > for example:
> > Dim strArr As String() = {"hallo", "hey", "hoi"}
> > ReDim Preserve strArr(2)
>
> You can skip 'ReDim Preserve strArr(2)' because 'strArr' is already a
string
> array with three elements. When using the array initializer syntax the
> compiler will set the upper bound automatically.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://classicvb.org/petition/>
>
.
- References:
- array notation
- From: steven
- array notation
- Prev by Date: Re: Hiding properties from the Forms Designer
- Next by Date: Re: Listview _Control
- Previous by thread: array notation
- Next by thread: search application
- Index(es):
Relevant Pages
|