Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15933

Initialization of data object structure

$
0
0
I have a class in a dll that I would like to initialize some variables. To assign a value with single data fields is not a problem but how can I assign a value to an array within a class?

No problem assigning a value to this field
Code:

Protected pReactance As Double = 0.0
Public Property Reactance() As Double
    Get
        Return pReactance
    End Get
    Set(ByVal value As Double)
        pReactance = value
    End Set
End Property

But how do I initialize this array?
Code:

Protected ccktGroup(0 To 169) As String
Public Property CktGroup(ByVal x As Integer) As String
    Get
        Return ccktGroup(x)
    End Get
    Set(ByVal value As String)
        ccktGroup(x) = value
    End Set
End Property


Viewing all articles
Browse latest Browse all 15933

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>