This is wrong:
- Code: Select all Expand view RUN
aCountGiorni[ DOW( FIELD->DATA )-1 ]
If FIELD->DATA is Sunday,
DOW( FIELD-> DATE ) evaluates to 1 and [
DOW[FIELD->DATA] - 1 ] evaluates to 0/
Naturally aCountGiorni[ 0 ] results in a runtime error.
This must be simple to understand.