Series() function not working

TeeChart for ActiveX, COM and ASP
Post Reply
Vic
Newbie
Newbie
Posts: 3
Joined: Wed Mar 24, 2004 5:00 am
Location: Australia

Series() function not working

Post by Vic » Wed Apr 28, 2004 5:00 am

Our company recently had just purchased the license for TeeChart V6 (we currently had TeeChart V5). I'm in the process of upgrading to TeeChart V6.

I've copied all the new VC classes from Utilities and included them in our project. We've set up the project in the way that we are able to switch from V5 to V6 and vice versa.

My problem is with the GetSeries() function. Previously, we've have a line of code in V5 that looks like this:
chart_.GetSeries(i_series).GetYValues().SetValue(i_point, i_value);
now, in V6 I'm using:
chart_.Series(i_series).GetYValues().SetValue(i_point, i_value); (NB: There's no GetSeries() or GetaSeries() in tchart.h)

Calling this Series() produced an error message "Member Not Found". When I clicked OK to this message, the graph then appeared but with only the first points filled, the rest are all zeros.

Have I call on the right function? If not, then what function I should call instead of the old GetSeries() ?

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Wed Apr 28, 2004 6:43 am

Hi Vic,
Have I call on the right function? If not, then what function I should call instead of the old GetSeries() ?
OK. First off, may I suggest that you read the following Word document:
C:\Program Files\Steema Software\TeeChart Pro v6 ActiveX Control\Docs\Upgrading from TeeChart v5.doc

In the text file under:
C:\Program Files\Steema Software\TeeChart Pro v6 ActiveX Control\TeeChart AX in NET.txt

you will find the following:

Changes for NET compatibility

- The Chart.Series(xx) read-only property has
been replaced by a Function method (affects
only code written in VC++ and similar
languages that make direct reference to Get_
and Set_ of properties). The new Series
method (called Series) changes visibly by
removal of the property 'Get_' element of the
Function. The change is required due to a
current MS.NET import restriction causing
non-import of ActiveX properties that have
an index parameter (only affects the root
level of controls !).

For a VB application no code change is
necessary. Please see the following notes for
other environments.

The original property has been hidden in the
interface and renamed to aSeries keeping its
existing Dispid to support backward compatibility
with applications compiled with previous
releases of TeeChart 5.
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply