property Chart.CondInsideZoom as String
Specifies the formula that indicates the dates that can be zoomed at runtime.

 TypeDescription 
   String A String expression that defines the dates that can be magnified by double clicking the base level, or resizing it. If empty, the CondInsideZoom property has no effect. If not empty and the expression is valid, it indicates the dates that can be magnified. For instance, if the ConsInsideZoom property is "month(value)= 5" specifies that user can zoom only dates in May.  
By default, the CondnsideZoom property is empty. If empty, the CondInsideZoom property has no effect. If the  CondInsideZoom property is not empty and valid, it indicates the dates that can be magnified by double clicking the time unit in the base level, if the InsideZoomOnDblClick property is True, or by resizing the time unit, if the AllowResizeInsideZoom property is True. In other words, the CondInsideZoom property has effect ONLY if the AllowResizeInsideZoom or InsideZoomOnDblClick properties. So, it has no effect when adding the inside zoom units by code, using the Add method. 

The expression may be a combination of variables, constants, strings, dates and operators, and value. The value operator gives the date-time expression being checked.  A string is delimited by ", ` or ' characters, and inside they can have the starting character preceded by \ character, ie "\"This is a quote\"". A date is delimited by # character, ie #1/31/2001 10:00# means the January 31th, 2001, 10:00 AM.

For instance, if the CondInsideZoom property is "weekday(value) = 0" means that you allow zooming only for Sundays, or if it is "not(weekday(value) = 0 or weekday(value) = 6)" the control allow zooming only for working dates, as Monday to Friday. 

The value keyword in the CondInsideZoom property indicates the date-time expression being checked. 

The supported binary arithmetic operators are:

The supported unary boolean operators are:

The supported binary boolean operators are:

The supported binary boolean operators, all these with the same priority 0, are :

Obviously, the priority of the operations inside the expression is determined by ( ) parenthesis and the priority for each operator. 

The supported conversion unary operators are:

Other known operators for numbers are:

Other known operators for strings are:

Other known operators for dates are:

The expression supports also immediate if ( similar with iif in visual basic, or ? : in C++ ) ie cond ? value_true : value_false, which means that once that cond is true the value_true is used, else the value_false is used. Also, it supports variables, up to 10 from 0 to 9. For instance, 0:="Abc" means that in the variable 0 is "Abc", and =:0 means retrieves the value of the variable 0. You can use variables to avoid computing several times the same thing.


Send comments on this topic.
© 1999-2008 Exontrol Inc, Software. All rights reserved.