Array

  • Thread starter Thread starter André Almeida Maldonado
  • Start date Start date
A

André Almeida Maldonado

Hy guys...

I'm creating a class (class.vb), and need to create a property that will be
an array...

How can I do it????


thank's
 
* "André Almeida Maldonado said:
I'm creating a class (class.vb), and need to create a property that will be
an array...

\\\
Public Class MyClass
Private m_MyArray() As Integer

Public Property MyArray() As Integer()
Get
Return m_MyArray
End Get
Set(ByVal Value As Integer())
m_MyArray = Value
End Set
End Property
End Class
///
 
André Almeida Maldonado said:
Hy guys...

I'm creating a class (class.vb), and need to create a property that
will be an array...

How can I do it????

Type
public property MyProp as integer()

press <enter> and the editor should create the property procedures, and you
now have a Property returning an array of Integers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Array property 1
Did you know ? 3
Shape Arrays VBA 0
Simple Array Question 1
TextBox to Array, Array Displayed in Textbox 0
withevents and arrays 2
shared memory 3
newbe question! 2

Back
Top