AddXY ?
Posted: Thu Jul 29, 2004 12:31 pm
I used the upgrade wizard in VB.NET to convert a VB6 project. The code is below. Basically, I need to know what the conversion is for the .AddXY (old TChart) to the new .NET Tchart.
VB6 --
With tchCorrectionCurve.Series(intLower)
For i = 0 To 7
.AddXY gmnrMainRotor.Curve(0, i), gmnrMainRotor.Curve(1, i), "", clTeeColor
Next i
End With
After conversion to VB.NET
Dim tchCorrectionCurve As Object
With tchCorrectionCurve.Series(intLower)
For i = 0 To 7
..AddXY(gmnrMainRotor.Curve(0, i), gmnrMainRotor.Curve(1, i), "", TeeChart.EConstants.clTeeColor)
Next i
End With
I commented out the Dim tchCorrectionCurve As Object
What would the new line be for the AddXY and the TeeChart.EConstants.clTeeColor ?
VB6 --
With tchCorrectionCurve.Series(intLower)
For i = 0 To 7
.AddXY gmnrMainRotor.Curve(0, i), gmnrMainRotor.Curve(1, i), "", clTeeColor
Next i
End With
After conversion to VB.NET
Dim tchCorrectionCurve As Object
With tchCorrectionCurve.Series(intLower)
For i = 0 To 7
..AddXY(gmnrMainRotor.Curve(0, i), gmnrMainRotor.Curve(1, i), "", TeeChart.EConstants.clTeeColor)
Next i
End With
I commented out the Dim tchCorrectionCurve As Object
What would the new line be for the AddXY and the TeeChart.EConstants.clTeeColor ?