thisform.dDateFrom = thisform.ctlDateRange.GetDateFrom() thisform.dDateTo = thisform.ctlDateRange.GetDateTo() thisform.Hide()