In X.5, I use variable calendars to select a date range for some weekly
reports.
The default week is the week preceding the current week - "last week".
In a form OnAfterStart EEP, I calculate Monday of last week as the start
date.
The Enhanced Variable Calendar is displayed and Monday of last week is
highlighted - works great!
To allow user to run reports for other weeks, I have it set up so that
if user double-clicks on any day of the week, an EEP is run that returns
the Monday of that week. The correct date is calculated, but I can't
get the calendar to highlight that Monday, it stays on the date that
user clicked.
In the example below, user clicked on 10/30 and the correct start date
is Monday, 10/28, displayed below the calendar. I'd like 10/28 to be
highlighted instead of the 30th.
Here is the code:
SET VAR VDow = (((IDWK(.vBegDate)) * -1 ) +1)
SET VAR vBegDate = (ADDDAY(.vBegDate,.VDow))
SET VAR vEndDate = (ADDDAY(.vBegDate,6))
RECALC VARIABLES
I thought RECALC VARIABLES would refresh the calendar, but it doesn't.
Nor could I find any property commands that would work.
Is there a way to do this? Any ideas?
TIA,
Doug
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rbase-l/1a0dce7a-c5f9-0af3-b67d-3199bf945b73%40wi.rr.com.