newbe question!

  • Thread starter Thread starter Smith
  • Start date Start date
S

Smith

Hello,

I need to define an array 10 "Arrays" of size 40 each. How do i do this at a
class level in VB.NET?
Any help will be highly apreciated.

Thanks

Newbe
 
Smith,

I can understand you wrong, however there is not something as size 40 in
Net.

I assume that you mean a string, however that can be as long as you wish.
It depends with what you fill that what the maximum string is.
By instance in a textbox you can set the property that the maximum allowed
characters is 40.

However, a string can be from any length.

The most simple Array is simple

dim x(09) as string() which is an array of 10 strings (at global lever I
would use private x(09) as string()

Be aware that you can redefine this one but you would not want that.
As soon as you don't know the size of an array you can use an arraylist or a
generic one of that.
There are however all types of so called lists which are what in past was
called arrays.

Cor
 
Smith said:
Hello,

I need to define an array 10 "Arrays" of size 40 each. How do i do this at
a class level in VB.NET?
Any help will be highly apreciated.

Thanks

Newbe


Does this work for your needs?

Dim a(10, 40) As Object
 
Back
Top