Hello. I am new to VB.Net
I have an existing program (made by someone else) that I want to modify to read some data values.
When I run the program I can see that each of the 200 "data" values contains 807 integers. I want to extract them, and
put them into a two dimension array 200,807. My problem is that I have no idea how to extract the 807 integers.
'I added the 2 lines to collect the values from the "data" variable
When I debug the program and use the QuickWatch to look at the "a4" variable, I see the following:
Attachment 95063
How do I read each individual integer from a4 ?
regards,
gerryc
I have an existing program (made by someone else) that I want to modify to read some data values.
When I run the program I can see that each of the 200 "data" values contains 807 integers. I want to extract them, and
put them into a two dimension array 200,807. My problem is that I have no idea how to extract the 807 integers.
Code:
Public Module test
Public ke2 As Long
Public keArray(0 To 200)
End Module
'I added the 2 lines to collect the values from the "data" variable
Code:
'Sub1............
''' <summary>
''' Get element
''' </summary>
''' <param name="notify">Notification content</param>
''' <returns>Element</returns>
Public Shared Function [Get](ByRef notify As UInteger) As List(Of Integer())
Dim value As New List(Of Integer())()
SyncLock syncObject
For Each data As Integer() In _buffer
value.Add(data)
ke2 = ke2 + 1 '<<< ADDED
keArray(ke2) = data '<<< ADDED
Next data
_buffer.Clear()
notify = _notify
_notify = 0
End SyncLock
Return value
End Function
Code:
'Sub2.......................
'Here I want to get all the values from the keArray
Dim n As Integer
Dim a4 'as ?
For n = 1 To 200
a4 = keArray(n)
'code to extract each of the 807 integers ???????????
Next
Attachment 95063
How do I read each individual integer from a4 ?
regards,
gerryc