Groups | Blog | Home
all groups > vb.net > december 2004 >

vb.net : Dim question


Cor Ligthert
12/31/2004 12:20:39 PM
JM,

[quoted text, click to view]

This are 6 references (placeholders) to create a new listview in.

It has in this way not much sense because you can only redimension an array.

It can be useful as this

dim MyNum as integer = MyotherArray.lenght
Dim Lst(MyNum) as Listview

but that is the same as

Dim Lst(MyotherArray.lenght) as Listview

I hope this helps?

Cor

Herfried K. Wagner [MVP]
12/31/2004 12:26:00 PM
"Jm" <jarrodm@ihug.com.au> schrieb:
[quoted text, click to view]

Yes, this will work, but notice that it will create an array with 6
elements, with indices 0, ..., 5, each of the elements being initialized
with 'Nothing'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Jm
12/31/2004 10:08:16 PM
Hi all

Is it possible to use DIM with an existing variable. By this i mean for
example: (Im just guessing on the syntax)

Dim MyNum as Int

MyNum = 5

Dim Lst(MyNum) as Listview

Thanks

AddThis Social Bookmark Button