C
cmdolcet69
How can i get (gage) to represent gages 3 and 4 in my array list.....
I have a total of 6 points. 4 points are on COM1 and 2 points are on
COM2
Points 3 and 4 (which are on COM2) should populate
selectDualDSICOM2.Add(gage), however the array is populated with
points 1 and point 2.
Can anyone help?
For intloop = 0 To newGraphics.charLabelArrayList.Count - 1
If Not CType(newGraphics.charLabelArrayList(intloop),
Label).BackColor.Equals(Color.LightSteelBlue) And _
Not CType(newGraphics.readingLabelArrayList(intloop),
Label).BackColor.Equals(Color.Black) Then
If CType(listOfGagesInCurrentComponent(intloop),
PartfileLibrary.Gages).COMPort = 2 Then
selectDualDSICOM2.Clear()
selectDualDSICOM2.Add(gage)
If Not gage.Association = String.Empty Then
If
pFile.Gages(CStr(gage.Association).Substring(4) - 1).Characteristic =
CType(newGraphics.charLabelArrayList(intloop), Label).Text Then
selectDualDSICOM2.Add(pFile.Gages(intloop))
Exit For
End If
End If
End If
End If
Next
I have a total of 6 points. 4 points are on COM1 and 2 points are on
COM2
Points 3 and 4 (which are on COM2) should populate
selectDualDSICOM2.Add(gage), however the array is populated with
points 1 and point 2.
Can anyone help?
For intloop = 0 To newGraphics.charLabelArrayList.Count - 1
If Not CType(newGraphics.charLabelArrayList(intloop),
Label).BackColor.Equals(Color.LightSteelBlue) And _
Not CType(newGraphics.readingLabelArrayList(intloop),
Label).BackColor.Equals(Color.Black) Then
If CType(listOfGagesInCurrentComponent(intloop),
PartfileLibrary.Gages).COMPort = 2 Then
selectDualDSICOM2.Clear()
selectDualDSICOM2.Add(gage)
If Not gage.Association = String.Empty Then
If
pFile.Gages(CStr(gage.Association).Substring(4) - 1).Characteristic =
CType(newGraphics.charLabelArrayList(intloop), Label).Text Then
selectDualDSICOM2.Add(pFile.Gages(intloop))
Exit For
End If
End If
End If
End If
Next