![]() | Type | Description | ||
| 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. |
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:
Here's few predefined types:
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.