We help IT Professionals succeed at work.
Get Started

Creating a Class as an Array?

BlakeMcKenna
BlakeMcKenna asked
on
164 Views
Last Modified: 2014-05-22
I have a Class in which I need to either declare it as an array or declare an array within the class and I'm not sure how to do it let alone initialize it. I have attached the class below.

    Public Class clsTEST_DETAILS_Creep
        Private _creep_ID As Integer
        Private _runNO As Short
        Private _intervalPoint As Short
        Private _output As Decimal
        Private _rawOutput As Decimal
        Private _errorPct As Decimal
        Private _timeStamp As DateTime

        Property creep_ID() As Integer
            Get
                Return _creep_ID
            End Get
            Set(value As Integer)
                _creep_ID = value
            End Set
        End Property

        Property runNO() As Short
            Get
                Return _runNO
            End Get
            Set(value As Short)
                _runNO = value
            End Set
        End Property

        Property intervalPoint() As Short
            Get
                Return _intervalPoint
            End Get
            Set(value As Short)
                _intervalPoint = value
            End Set
        End Property

        Property output() As Decimal
            Get
                Return _output
            End Get
            Set(value As Decimal)
                _output = value
            End Set
        End Property

        Property rawOutput() As Decimal
            Get
                Return _rawOutput
            End Get
            Set(value As Decimal)
                _rawOutput = value
            End Set
        End Property

        Property errorPct() As Decimal
            Get
                Return _errorPct
            End Get
            Set(value As Decimal)
                _errorPct = value
            End Set
        End Property

        Property timeStamp() As DateTime
            Get
                Return _timeStamp
            End Get
            Set(value As DateTime)
                _timeStamp = value
            End Set
        End Property
    End Class

Open in new window

Comment
Watch Question
Top Expert 2012
Commented:
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE