I have the following multi dimensional array type made up as follows :
Type Wedge
C407 As Long
C417 As Long
C507 As Long
C516 As Long
C607 As Long
C617 As Long
C707 As Long
C716 As Long
C807 As Long
C817 As Long
C907 As Long
End Type
It goes on further for another 20 or so elements, I then define the array as such
Dim myWedge() As Wedge
ReDim myWedge(99, 4)
This works OK, and is structured so that I can break down the time stamps into 15 minute segments through out the day. so far so good
The problem I have is that the text string I search such as :
--- YTD05 C707 DC5 64:Right wedge not in OK
I pull out the C707 using the line below, again this is OK,
myWedgeFault = (Mid(myFaultDesc, 11, 4)) ' gives me C707
but then want to increment the array element by 1 using something like :
myWedge(myftime, ArrayCol).C707 = myWedge(myftime, ArrayCol).C707 + 1
BUT I want to set the C707 part by using a variable such as myWedgeFault so that I don't have to hard code all the different options in
Something like :
myWedge(myftime, ArrayCol).myWedgefault = myWedge(myftime, ArrayCol).myWedgefault + 1
Is this possible
Thanks