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
selectDualDSICO M2.Add(gage), however the array is populated with
points 1 and point 2.
Can anyone help?
For intloop = 0 To newGraphics.cha rLabelArrayList .Count - 1
If Not CType(newGraphi cs.charLabelArr ayList(intloop) ,
Label).BackColo r.Equals(Color. LightSteelBlue) And _
Not CType(newGraphi cs.readingLabel ArrayList(intlo op),
Label).BackColo r.Equals(Color. Black) Then
If CType(listOfGag esInCurrentComp onent(intloop),
PartfileLibrary .Gages).COMPort = 2 Then
selectDualDSICO M2.Clear()
selectDualDSICO M2.Add(gage)
If Not gage.Associatio n = String.Empty Then
If
pFile.Gages(CSt r(gage.Associat ion).Substring( 4) - 1).Characterist ic =
CType(newGraphi cs.charLabelArr ayList(intloop) , Label).Text Then
selectDualDSICO M2.Add(pFile.Ga ges(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
selectDualDSICO M2.Add(gage), however the array is populated with
points 1 and point 2.
Can anyone help?
For intloop = 0 To newGraphics.cha rLabelArrayList .Count - 1
If Not CType(newGraphi cs.charLabelArr ayList(intloop) ,
Label).BackColo r.Equals(Color. LightSteelBlue) And _
Not CType(newGraphi cs.readingLabel ArrayList(intlo op),
Label).BackColo r.Equals(Color. Black) Then
If CType(listOfGag esInCurrentComp onent(intloop),
PartfileLibrary .Gages).COMPort = 2 Then
selectDualDSICO M2.Clear()
selectDualDSICO M2.Add(gage)
If Not gage.Associatio n = String.Empty Then
If
pFile.Gages(CSt r(gage.Associat ion).Substring( 4) - 1).Characterist ic =
CType(newGraphi cs.charLabelArr ayList(intloop) , Label).Text Then
selectDualDSICO M2.Add(pFile.Ga ges(intloop))
Exit For
End If
End If
End If
End If
Next
Comment