Series.Assign and Series.AssignValues problem

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Uli
Newbie
Newbie
Posts: 80
Joined: Thu Apr 22, 2010 12:00 am

Re: Series.Assign and Series.AssignValues problem

Post by Uli » Mon Jun 21, 2010 2:11 pm

Hi Sandra,

yes, this overlaoded function works. One should not expect too much performance loss. And yes, the effort to change my code is acceptable for me, too.

But I still think the .Value property should be the same for source and destination series after applying the .assign methods...

Best regards

Uli

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Series.Assign and Series.AssignValues problem

Post by Narcís » Tue Jun 22, 2010 11:34 am

Hi Uli,
yes, this overlaoded function works. One should not expect too much performance loss. And yes, the effort to change my code is acceptable for me, too.
Excellent! I'm glad to hear that.
But I still think the .Value property should be the same for source and destination series after applying the .assign methods...
As demonstrated here, Assign makes an exact copy of one series to the other. ValueList.Values is a public public array. It was designed primarily for internal use only but was made public for advanced users of TeeChart. The length of this property is not guaranteed to be the same length as the ValueList.Count property. We think it is this ambivalence which is causing the problem discussed on this thread.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Uli
Newbie
Newbie
Posts: 80
Joined: Thu Apr 22, 2010 12:00 am

Re: Series.Assign and Series.AssignValues problem

Post by Uli » Tue Jun 22, 2010 12:09 pm

Hi Narcis,
ValueList.Values is a public public array. It was designed primarily for internal use only but was made public for advanced users of TeeChart. The length of this property is not guaranteed to be the same length as the ValueList.Count property. We think it is this ambivalence which is causing the problem discussed on this thread.
OK, when this is your intention... But to reduce such ambivalency a little bit a hint to such limitations in the TeeChart help would be valuable.

Best regards

Uli

Post Reply