Page 1 of 1

scFastLine not defined

Posted: Tue Aug 09, 2016 2:22 pm
by 16678764
Hi,

I'm trying to use TeeChart ActiveX2016 in my application. But when i compile the VBA code, it gives me an error: Variable not defined: scFastline

Code:
For y = 2 To nNumColumns
TChart.Object.AddSeries (scFastLine)
TChart.Object.Series(y - 2).XValues.DateTime = False
TChart.Object.Series(y - 2).Title = Sheets(strWFSnapshotSheetName).Cells(lnTopRow, y)

Can anyone help me with this?

Re: scFastLine not defined

Posted: Tue Aug 09, 2016 4:10 pm
by 10050769
Hello wbrush,

The code below shows you how can add a new series using Visual Studio:

cSharp code

Code: Select all

   axTChart1.AddSeries(TeeChart.ESeriesClass.scFastLine);
Visual Basic code

Code: Select all

  TChart1.AddSeries(TeeChart.ESeriesClass.scFastLine)
We have sent you an email with same solution. Can you please review and answer that?

Hoping this helps.

Re: scFastLine not defined

Posted: Tue Aug 09, 2016 5:19 pm
by 16678764
Hi,

I have that error fixed but now i am seeing another variable not defined error for the variable aRightAxis.

Code:

TChart.Object.Series(y - 2).VerticalAxis = aRightAxis


Also could you tell me a quick way to search for these variables in the teechart files?

Re: scFastLine not defined

Posted: Tue Aug 09, 2016 5:28 pm
by 16678764
In the previous issue it gives me an error when i use TeeChart.ESeriesClass.scFastLine, but when i use TChart.ESeriesClass.scFastLine i see no errors.

Re: scFastLine not defined

Posted: Wed Aug 10, 2016 2:17 pm
by 10050769
Hello wbush,

We have given you an answer via e-mail.

Thanks for your help.