Uniquely identifying a series
Posted: Mon Feb 04, 2008 7:40 am
Hello,
using TeeChart ActiveX version 7.0.1.4, I am trying to maintain a link between my TeeChart series and my application-specific plot extensions. This link needs to be persistent, i.e. I must be able to save the TeeChart state to a .tee file and save the extensions state to another file, and still maintain the link when I load these files again.
Currently I am using the ISeries::Name property to store a unique key, which is also stored in my extension object, thus providing the link between the TeeChart series and my extension objects.
My question is then: Does the TeeChart use the ISeries::Name property internally? It does not seem to have any visual effect.
If TeeChart does not use this property internally, I am curious as to why it puts limitations on the format of the string i provide to it - specifically, it seems to get upset when I provide a string containing a GUID/UUID (e.g. 550e8400-e29b-41d4-a716-446655440000). It seems that I am not allowed to specify a string beginning with a numerical character. Also, (as far as I remember) it does not like '-', while '_' is fine.
This is not a big issue for me, but I get a bit insecure in what I am doing, when I see the TeeChart responding like this. I basically just want to know if I can continue using the Name property of ISeries as a place to store my application-specific value, or if there are any better place to store this.
Thank you for your help.
using TeeChart ActiveX version 7.0.1.4, I am trying to maintain a link between my TeeChart series and my application-specific plot extensions. This link needs to be persistent, i.e. I must be able to save the TeeChart state to a .tee file and save the extensions state to another file, and still maintain the link when I load these files again.
Currently I am using the ISeries::Name property to store a unique key, which is also stored in my extension object, thus providing the link between the TeeChart series and my extension objects.
My question is then: Does the TeeChart use the ISeries::Name property internally? It does not seem to have any visual effect.
If TeeChart does not use this property internally, I am curious as to why it puts limitations on the format of the string i provide to it - specifically, it seems to get upset when I provide a string containing a GUID/UUID (e.g. 550e8400-e29b-41d4-a716-446655440000). It seems that I am not allowed to specify a string beginning with a numerical character. Also, (as far as I remember) it does not like '-', while '_' is fine.
This is not a big issue for me, but I get a bit insecure in what I am doing, when I see the TeeChart responding like this. I basically just want to know if I can continue using the Name property of ISeries as a place to store my application-specific value, or if there are any better place to store this.
Thank you for your help.