Re: array notation

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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/>
>


.



Relevant Pages

  • Re: 2 different numbers.....
    ... because if i do seven columns, the textbox wouldn't dispalyed numbers and cliicking several button again...limited to 2. ... 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. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: 2 different numbers.....
    ... Peter Proost wrote: ... 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. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Datagrid allow edit in column when its new row
    ... bigger and better idiots. ... So far, the Universe is winning. ... > Greetz Peter ... > bigger and better idiot-proof programs, and the Universe trying to produce ...
    (microsoft.public.dotnet.languages.vb)
  • Re: saved bitmap size
    ... to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. ... So far, the Universe is winning. ... striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. ... Dim i As Integer ...
    (microsoft.public.dotnet.languages.vb)
  • [Full-disclosure] Moderated?
    ... >bigger and better idiot-proof programs, and the Universe trying to produce ... >bigger and better idiots. ... So far, the Universe is winning." ... such viruses. ...
    (Full-Disclosure)