Problem with CursorTool

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
tenaris
Newbie
Newbie
Posts: 39
Joined: Fri Mar 02, 2007 12:00 am

Problem with CursorTool

Post by tenaris » Fri Apr 04, 2008 2:40 pm

Hello,

My name is Marcelo.

I'm generating a grafic, in X axis I'm putting dates and in Y axis I'm putting double..

I'm having problems with CursorTool, when I get the values, I need to take the exactly value in X axis,
but I get a value double when I put a date...
I try to convert this value to date..but It's imposible.

Any idea, How I could to solve this problem?

Thank in advance.

Best Regards
Marcelo

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

Post by Narcís » Fri Apr 04, 2008 2:54 pm

Hi Marcelo,

You could try using FromOADate method, for example:

Code: Select all

			DateTime dt = DateTime.FromOADate(tChart1[0].XValues[0]);
Hope this helps!
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

Post Reply