Hi,
I am trying to set the valid range (a month) to a calendar control. It works fine with the low date or with the high date, but I am unable to set a range (only days from a defined month are allowed). Can somebody point me in the right direction please?
Thanks in advance for your help
rgds
Werner
I am trying to set the valid range (a month) to a calendar control. It works fine with the low date or with the high date, but I am unable to set a range (only days from a defined month are allowed). Can somebody point me in the right direction please?
Code:
LOCAL dt AS SYSTEMTIME control handle cbhndl, %IDC_BUDAT to hdp if isfalse DateTime_SetRange (hdp, %GDTR_MIN, dt) then ? "Can't set min range" end if dt.wDay=VAL(right$(LastDay(sDate),2)) if isfalse DateTime_SetRange (hdp, %GDTR_MAX, dt) then ? "Max-Bereich kann nicht gesetzt werden" end if
rgds
Werner
Comment