hello all,
I was wondering how to set the minimum and maximum of an x-axis (of datetime type) to EXACTLY to some datetime value, e.g. range from 2005-01-01 00:00:01 to 2005-01-31 23:59:59?
SetMinMax method does not approve datetime values of such format.
Thanks in advance!
Mike
Datetime x-axis min and max values
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Mike,
The following code works:
The following code works:
Code: Select all
Dim XMin, XMax As Double
XMin = #1/1/2005 12:00:01 AM#
XMax = #1/31/2005 11:59:59 PM#
TChart1.Axis.Bottom.SetMinMax XMin, XMax
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 |
thanks,
this works, BUT
I need to construct the datetime value (XMin and XMax) from variables, having the Month and Year values. How can I do that? The '#' character is the problem here.
The user in my website can choose the month and year and the graph is updated according to those values.
Thanks in advance!
Mike
this works, BUT
I need to construct the datetime value (XMin and XMax) from variables, having the Month and Year values. How can I do that? The '#' character is the problem here.
The user in my website can choose the month and year and the graph is updated according to those values.
Thanks in advance!
Mike