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

Is there any way to creat a multidimensional array in my data object

$
0
0
I have a class with hundreds of data fields that vary from one to another. For a good portion, I have an array of 169 data fields. Now I want to have six integers in one of those data fields. Does anyone know how I can accomplish this?

I would like to keep the code within this configuration, but a separate class object may be required to get what I want here. Does anyone know of a solution that would work?

'of course I am getting errors with this, but is what I hope to accomplish:
Private cCktGroupCmbo(0 To 169)(0 To 6) As Integer()
Public Property CktGroupCmbo(ByVal x As Integer)(ByVal y As Integer) As Integer
Get
Return cCktGroupCmbo(x)(y)
End Get
Set(ByVal valuex As Integer)(ByVal valuey As Integer)
cCktGroupCmbo(x) = valuex
End Set
End Property

An array that works well is this, but I want a new field of numbers that I can record up to six numbers out of in the same field as the group combo.

Private 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 15067

Trending Articles



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