Failure when using ITChart.ChangeSeriesType

TeeChart for ActiveX, COM and ASP
Post Reply
Midnightprowler
Newbie
Newbie
Posts: 4
Joined: Fri Aug 01, 2003 4:00 am
Contact:

Failure when using ITChart.ChangeSeriesType

Post by Midnightprowler » Mon Feb 23, 2004 3:54 pm

When trying to change a scLine to a scFastLine, the scLine is removed but there is nothing under scFastLine, so trying to set anything under it gives 'Catastrophic failure'. Please help???

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Feb 24, 2004 9:17 am

Hi,

which TeeChart version are you using ? Also, could you please post the code so I can reproduce the problem "as is" here ?
The following code works just fine here using the latest TeeChart Pro v6.04, could you test it ?

Code: Select all

Private Sub Form_Load()
With TChart1
    .AddSeries scLine
    .Series(0).FillSampleValues (10)
End With
End Sub

Private Sub Command1_Click()
    TChart1.ChangeSeriesType 0, scFastLine
End Sub

Post Reply