Hi Guys of Teechart !
We have to solve the following small problem:
We use Teechart .Net and write to the fastline with the .Add(DateTime x, Value y, Color z). What we now want is to receive the actual position of a CursorTool through XValue. XValue is a double. How can we get the DateTime of this XValue?
regards,
rf
How to get DateTime from XValue in CursorTool
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi rf,
You can do something like this:
or this:
You can do something like this:
Code: Select all
DateTime dt = DateTime.FromOADate(cursor1.XValue);
Code: Select all
DateTime dt = Convert.ToDateTime(cursor1.XValue);
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |