Reference to system variables |
Top Previous Next |
You can use the following system variables in expressions (they are accessible in the "Data" window):
Every variable has a definite data type. And on this, depends how it will be used in the expression. Here is an example of an expression where date is being used:
[Date].Year
This expression returns the current year. As "Date" variable has DateTime type, we can refer to its "Year" property. We can get the current month similarly ([Date].Month).
FastReport converts reference to system variable into the following form (for example, the "Date" variable):
((DateTime)Report.GetVariableValue("Date")) |